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

Z = X

c = 0

while Z <= Y:

    c += 1

    Z = 2 * Z

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

n = 0

A = X

while A <= Y:

    n += 1

    A *= 2

print(n)
X, Y = list(map(int, input().split()))
Z = X
c = 0
while Z <= Y:
    c += 1
    Z = 2 * Z
print(c)

X, Y = list(map(int, input().split()))
n = 0
A = X
while A <= Y:
    n += 1
    A *= 2
print(n)

-Z = X -c = 0 -while Z <= Y: -    c += 1 -    Z = 2 * Z -print(c) +n = 0 +A = X +while A <= Y: +    n += 1 +    A *= 2 +print(n)