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

t = X

ans = 0

while t <= Y:

    t *= 2

    ans += 1

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



ans = 0

while X <= Y:

    X *= 2

    ans += 1

print(ans)

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

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

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