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

cnt = 0

while X <= Y:

  X *= 2

  cnt += 1

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

-ans = 0 +cnt = 0 -    ans += 1 -print(ans) +    cnt += 1 +print(cnt)