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

import copy

x1=copy.deepcopy(x)

y1=copy.deepcopy(y)

count=0



while(y1>=x1):

    y1//=2

    count+=1



print(count)

X, Y = list(map(int,input().split()))



A = X

ans = 1



while(1):

    if X*2 > Y:

        break

    X *= 2

    ans += 1



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

x1 = copy.deepcopy(x)
y1 = copy.deepcopy(y)
count = 0
while y1 >= x1:
    y1 //= 2
    count += 1
print(count)

X, Y = list(map(int, input().split()))
A = X
ans = 1
while 1:
    if X * 2 > Y:
        break
    X *= 2
    ans += 1
print(ans)

-x, y = list(map(int, input().split())) -import copy - -x1 = copy.deepcopy(x) -y1 = copy.deepcopy(y) -count = 0 -while y1 >= x1: -    y1 //= 2 -    count += 1 -print(count) +X, Y = list(map(int, input().split())) +A = X +ans = 1 +while 1: +    if X * 2 > Y: +        break +    X *= 2 +    ans += 1 +print(ans)