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

ans = 1

while x*2 <= y:

    ans += 1

    x *= 2

print(ans)

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



if y < 2*x:

    print((1))

    exit()



ans = 1

while x*2 <= y:

    ans += 1

    x = 2*x



print(ans)

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

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

+if y < 2 * x: +    print((1)) +    exit() -    x *= 2 +    x = 2 * x