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



ans = 0

tmp = X

while tmp <= Y:

    tmp *= 2

    ans += 1



print(ans)

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



cnt = 0

while X <= Y:

    cnt += 1

    X *= 2



print(cnt)

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

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

-ans = 0 -tmp = X -while tmp <= Y: -    tmp *= 2 -    ans += 1 -print(ans) +cnt = 0 +while X <= Y: +    cnt += 1 +    X *= 2 +print(cnt)