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



ans = 0

while X <= Y:

    ans += 1

    X = X << 1

    

print(ans)

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



cnt = 0

while x <= y:

    x *= 2

    cnt += 1

print(cnt)

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

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

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