Supernatural
You are given a number n.
A supernatural number is a number whose product of digits is equal to n, and in this number there is no digit 1.
Count the number of supernatural numbers for a given n.
Input
Contains a single integer n, 1 <= n <= 100.
Output
Print the number of supernatural numbers.
Count the number of supernatural numbers for a given n.
Input
Contains a single integer n, 1 <= n <= 100.
Output
Print the number of supernatural numbers.
SAMPLE INPUT
4
SAMPLE OUTPUT
2
Explanation
There are only two natural numbers, the product of the digits of which is 4 - 4, 22.
Comments
Post a Comment
Please give us your valuable feedback