A positive integer is called a 2-3-integer, if it is equal to 2<sup class="upper-index">*x*</sup>·3<sup class="upper-index">*y*</sup> for some non-negative integers *x* and *y*. In other words, these integers are such integers that only have 2 and 3 among their prime divisors. For example, integers 1, 6, 9, 16 and 108 — are 2-3 integers, while 5, 10, 21 and 120 are not.

Print the number of 2-3-integers on the given segment [*l*, *r*], i. e. the number of sich 2-3-integers *t* that *l* ≤ *t* ≤ *r*.
The only line contains two integers *l* and *r* (1 ≤ *l* ≤ *r* ≤ 2·10<sup class="upper-index">9</sup>).
In the first example the 2-3-integers are 1, 2, 3, 4, 6, 8 and 9.

In the second example the 2-3-integers are 108, 128, 144, 162 and 192.
1 10
7
100 200
5
1 2000000000
326
1088391168 1934917632
17
1088391167 1934917632
17
1088391169 1934917632
16
1088391168 1934917631
16
1088391168 1934917633
17
4 134217728
250
209952 43046722
112
25165825 43046719
13
5183 25165825
153
388645 455910
3
472069 972050
14
1 1
1
2 2
1
12 1999999931
319
1999999999 1999999999
0
2000000000 2000000000
0
1934917632 1934917632
1
1836660096 1836660096
1
1811939328 1811939328
1
1719926784 1719926784
1
1632586752 1632586752
1
1610612736 1610612736
1
1207959552 1207959552
1
129140163 129140163
1
12345 54321
21
1889569 25165826
56
73 7077888
165
7077888 45349631
43
6144 7077886
122
3779135 4194302
2
214 161243134
232
214 18874369
180
28 863
26
1417174 172186886
112
27 102036671
234
147458 102036672
138
33554431 102036671
28
1572863 33554433
68
33554434 181398528
43
373247 17915905
81
4251526 68024450
65
553599 555493
0
69739 671621
40
618583 755045
4
838469 943236
2
509607936 1836660096
38
509607935 1836660096
38
509607937 1836660096
37
509607936 1836660095
37
509607936 1836660097
38
var inp = readline().split(' ');
var l = inp[0], r = inp[1];
 
var cur = 1, res = 0;
for(var t = 0; t < 64; ++t) {
    var pow = 1;
    for(var j = 0; j < 20; ++j) {
        var x = cur * pow;
        if(x >= l && x <= r)
            res++;
        
        pow *= 3;
    }
    cur *= 2;
}
 
print(res);