After participating in this year's Canadian Computing Competition, Bob has been enlightened with the knowledge that only certain numbers are good.
Let the digits of a number be of the form , where . Then, Bob says that the number is good if, for all , if is odd and if is even.
Bob wants to find as many good numbers as possible. He would like you to help him find the number of good numbers in the range .
Input Specification
The first line will contain two space-separated integers, and .
Subtask 1 [10%]
Subtask 2 [90%]
No further constraints.
Output Specification
Output one integer containing the number of good numbers in the range.
Sample Input
20 30
Sample Output
7
Explanation for Sample Output
The numbers that are not good are , , , and .
Comments