x,y = list(map(int,input().split()))

ans=1

tmp=x

for i in range(x,y+1):

    if tmp*2>y:

        break

    tmp*=2

    ans+=1

print(ans)
x,y = list(map(int,input().split()))



ans = 1

while x<y:

    x*=2

    ans+=1

    if x>y:

        ans-=1

        break

print(ans)
x, y = list(map(int, input().split()))
ans = 1
tmp = x
for i in range(x, y + 1):
    if tmp * 2 > y:
        break
    tmp *= 2
    ans += 1
print(ans)

x, y = list(map(int, input().split()))
ans = 1
while x < y:
    x *= 2
    ans += 1
    if x > y:
        ans -= 1
        break
print(ans)

-tmp = x -for i in range(x, y + 1): -    if tmp * 2 > y: +while x < y: +    x *= 2 +    ans += 1 +    if x > y: +        ans -= 1 -    tmp *= 2 -    ans += 1