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

ans = 1

while x <= y:

    x *= 2 

    if x > y:

        break 

    ans += 1



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

ans = 1

while X <= Y:

    X *= 2

    if X > Y:

        break

    ans += 1



print(ans)
x, y = list(map(int, input().split()))
ans = 1
while x <= y:
    x *= 2
    if x > y:
        break
    ans += 1
print(ans)

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

-x, y = list(map(int, input().split())) +X, Y = list(map(int, input().split())) -while x <= y: -    x *= 2 -    if x > y: +while X <= Y: +    X *= 2 +    if X > Y: