Count the integers of the form 2^x * 3^y#9021

Count the integers of the form 2^x * 3^y

1 second
128 megabytes
Very easy

Find the number of integers in the range that can be represented in the form 2^x \cdot 3^y where x \ge 0 and y \ge 0.

Input

Contains no more than 10^6 lines. Each line contains two integers and b~(0 \le a \le b \le 10^{18}), representing a single query.

Output

For each query, print on a separate line the number of integers within the range inclusive that can be written in the form 2^x \cdot 3^y.

Examples

Example 1

Loading
Loading