#000255

Umnozak

The digit-product of a positive integer is the product of the number's decimal digits. For example, the digitproduct of 2612 is 2 X 6 X 1 X 2 = 24. The self-product of a number is the product of the number and its digitproduct. For example, the selfproduct of 2612 is 2612 X 24 = 62688. Write a program that, given two positive integers A and B, calculates the number of positive integers whose selfproduct is between A and B, inclusive.



InputThe first and only line contains two integers A and B (1 ≤ AB < 10^18).


OutputOutput should consist of a single integer, the number of positive integers whose twist is between A and B.


Input:20 30

Output:2


Input:145 192

Output:4

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.