The digit-product of a positive integer is the product of the number's decimal digits. For example, the digit-product of
The self-product of a number is the product of the number and its digit-product. For example, the self-product of
Write a program that, given two positive integers
Input Specification
The first and only line contains two integers
Output Specification
Output should consist of a single integer, the number of positive integers whose self-product is between
Scoring
In test cases worth a total of
In test cases worth another
Sample Input 1
Copy
20 30
Sample Output 1
Copy
2
Sample Input 2
Copy
145 192
Sample Output 2
Copy
4
Explanation for Sample Output 2
The self-products of numbers
Sample Input 3
Copy
2224222 2224222
Sample Output 3
Copy
1
Comments