Count the integers of the form 2^x * 3^y
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the count of integers from the range that can be represented as .
Input
Consists of no more than lines. Each line contains two integers and that represents one query.
Output
For each query print in a separate line the number of integers from the range inclusively that can be represented as .
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 32%