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

k = 0

while X<=Y:

    k += 1

    X = X*2

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

k = 0

while X*2**k<=Y:

    k += 1

print(k)
X, Y = list(map(int, input().split()))
k = 0
while X <= Y:
    k += 1
    X = X * 2
print(k)

X, Y = list(map(int, input().split()))
k = 0
while X * 2**k <= Y:
    k += 1
print(k)

-while X <= Y: +while X * 2**k <= Y: -    X = X * 2