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()))

ans = 0

while X <= Y:

    ans += 1

    X *= 2

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()))
ans = 0
while X <= Y:
    ans += 1
    X *= 2
print(ans)

+    ans += 1 -    ans += 1