2^x * 3^y#230

2^x * 3^y

1 second
128 megabytes
Medium (≈1350)

Find the number of integers in the interval of the form 2^x \cdot 3^y~(x \ge 0, y \ge 0).

Input

Queries are given on separate lines in the input, with no more than 10^6 queries in total. Each line contains two integers and b~(0 \le a \le b \le 10^{18}) for the query.

Output

For each query, output the number of integers in the interval that are of the form 2^x \cdot 3^y.

Examples

Example 1

Loading
Loading