Problem:
 Score : 300 points    Problem Statement As a token of his gratitude, Takahashi has decided to give his mother an integer sequence.
The sequence A needs to satisfy the conditions below:   A consists of integers between X and Y (inclusive).  For each 1\leq i \leq |A|-1 , A_{i+1} is a multiple of A_i and strictly greater than A_i .   Find the maximum possible length of the sequence.      Constraints  1 \leq X \leq Y \leq 10^{18}  All input values are integers.         Input Input is given from Standard Input in the following format:  X  Y       Output Print the maximum possible length of the sequence.        Sample Input 1 3 20      Sample Output 1 3  The sequence 3,6,18 satisfies the conditions.       Sample Input 2 25 100      Sample Output 2 3       Sample Input 3 314159265 358979323846264338      Sample Output 3 31

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


def A():
    return


def B():
    return


def C():
    x,y = LI()
    ans = 1
    for i in range(10000000000000):
        x *= 2
        if x > y:break
        ans += 1
    print(ans)


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == "__main__":
    C()

Solution (Python):
x,y = map(int,input().split())
a = [x]
while 1:
    if x*2 <= y:
        a.append(x*2)
        x = x*2
    else:
        break
print(len(a))

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

Solution (Python):
x,y=map(int,input().split())
ans=1
for i in range(70):
  x*=2
  if x<=y:
    ans+=1
print(ans)

Solution (Python):
X, Y = map(int, input().split())

for i in range(100):
    if X * 2**i > Y:
        break

print(i)

Solution (Python):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return list(input())
x,y=IL()
for i in range(100):
    if x*pow(2,i)>y:
        print(i)
        break

Solution (Python):
x, y = map(int, input().split())
cnt = 0
tmp = x

while tmp <= y:
  cnt += 1
  tmp *= 2
  
  
print(cnt)

Solution (Python):
X, Y = map(int, input().split())


def main():
    A = X

    while A <= Y:
        A <<= 1

    print(A.bit_length() - X.bit_length())
    return


main()

Solution (Python):
x,y=map(int,input().split())
i=1
s=x
while s<y:
    s*=2
    if s<=y:
       i+=1
    else:
        break
print(i)

Solution (Python):
def multiple_gift(X: int, Y: int) -> int:
    n = X
    count = 0
    while n <= Y:
        n <<= 1
        count += 1
    return count


if __name__ == "__main__":
    X, Y = map(int, input().split())
    ans = multiple_gift(X, Y)
    print(ans)

Solution (Python):


import itertools
import collections
import bisect
import sys
input = sys.stdin.readline

def main():
    X, Y = map(int, input().split())
    s = X
    ans = 0
    while s <= Y:
        ans += 1
        s *= 2
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
X, Y = map(int, input().split())
ans = 0
value = 0
step = X
while True:
    value += step
    if value > Y:
        break
    step = value
    ans += 1
print(ans)

Solution (Python):
x, y = map(int, input().split())
ans=0
while True:
    if y<x:
        break
    ans+=1
    x*=2
print(ans)

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

Solution (Python):
x,y = map(int,input().split())
count = 0
while x <= y:
    x = x*2
    count += 1

print(count)

Solution (Python):
x, y = (int(i) for i in input().split())

count = 1
while True:
    x = x*2
    if x > y:
        break
    count+=1
print(count)

Solution (Python):
X,Y=map(int,input().split())
num=X
p=1
while num*2<=Y:
    num*=2
    p+=1
print(p)

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    X, Y = map(int, input().split())
    i = 1
    while X * 2**i <= Y:
        i += 1
    print(i)


if __name__ == '__main__':
    main()

Solution (Python):
x,y=[int(i) for i in input().split()]
cnt=0
for i in range(70):
    if x*(2**i)<=y:
        cnt+=1
print(cnt)

Solution (Python):

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

Solution (Python):
X,Y = map(int,input().split())
i = 0
while X <= Y:
    X *= 2
    i += 1
print(i)

Solution (Python):
X, Y = map(int, input().split())
count = 1
while True:
    if X * 2 <= Y:
        X *= 2
        count += 1
    else:
        break
print(count)

Solution (Python):
X, Y = map(int, input().split())
num = 0
while X <= Y:
    num += 1
    X *= 2
print(num)

Solution (Python):
a, b = map(int, input().split())
t = 0
while a <= b:
  a *= 2
  t += 1
print(t)

Solution (Python):
X, Y = map(int,input().split())

cnt = 0
while X <= Y:
  X = X*2
  cnt += 1
print(cnt)

Solution (Python):
def main():
    X, Y = map(int, input().split())
    ans = 0
    while X <= Y:
        ans += 1
        X *= 2
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
X,Y=map(int,input().split())
now=X
num=1
while(now<=Y):
    if now*2>Y:
        break
    now=now*2
    num+=1
print(num)

Solution (Python):
x,y=map(int,input().split())
a=x
cnt=0
while a<=y:
    a=a*2
    cnt+=1

print(cnt)

Solution (Python):
from sys import exit
X,Y = [int(n) for n in input().split()]

ans = 0
while(X<=Y):
    ans+=1
    X*=2
print(ans)

Solution (Python):
import sys
import math
X, Y = map(int, input().split())
flag = False
for i in range(int(math.log2(Y / X)) + 10):
    if 2 ** i == Y // X:
        flag = True
if flag:
    print(int(math.log2(Y / X)) + 1)
else:
    print(int(-((-math.log2(Y/X))//1)))

Solution (Python):
x, y = map(int, input().split())
ret = 0
while x <= y:
    x *= 2
    ret += 1
print(ret)

Solution (Python):
X, Y = map(int, input().split())

ans = 0
while X <= Y:
    X = X*2
    ans += 1
print(ans)

Solution (Python):
X,Y=map(int,input().split())
ans = 0
while X<=Y:
    X*=2
    ans+=1
print(ans)

Solution (Python):
X, Y = map( int, input().split() )

ans = 0
while X <= Y:
    X *= 2
    ans += 1

print( ans )

Solution (Python):
X,Y = map(int,input().split())
res = 0

while X <= Y:
    X *= 2
    res += 1

print(res)

Solution (Python):
X, Y = map(int, input().split())
cnt = 0
while X <= Y:
    X *= 2
    cnt += 1
print(cnt)

Solution (Python):
x, y = map(int, input().split())
count = 0
z = x
while True:
    z *= 2
    count += 1
    if z > y:
        break
print(count)

Solution (Python):
x, y = map(int, input().split())

ans = 0
while x <= y :
    ans += 1
    x *= 2
    
print(ans)

Solution (Python):

x,y=map(int,input().split())
cnt=1
now=x
while True:
    now*=2
    if now>y:break
    cnt+=1
print(cnt)

Solution (Python):

import math
X,Y=map(int,input().split())
def Binary(r,l):
	global X,Y
	while r<l-1:
		m=(r+l)//2
		if 2**m*X<=Y:
			r=m
		else:
			l=m
	return r

print(Binary(0,int(math.log2(Y/X)+1))+1)

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

Solution (Python):
X,Y = map(int,input().split())
ans=0
while X <= Y:
    X*=2
    ans+=1
print(ans)

Solution (Python):
X, Y = map(int, input().split())
ans = 0
while X <= Y:
    X *= 2
    ans += 1
print(ans)

Solution (Python):

import copy
import numpy as np
import random

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

count_2 = 0

multi = y//x
by_2 = 1
count = 0
while multi >= by_2:
    by_2 *=2
    count += 1

print(count)

Solution (Python):
x, y = map(int, input().split())
cnt = 0
while x * 2 ** cnt <= y:
    cnt += 1
print(cnt)

Solution (Python):
N, M = map(int, input().split())
tmp = N
count = 0
for i in range(10**9):
    if tmp > M:
        break
    tmp *= 2
    count += 1
    
print(count)

Solution (Python):
x,y=map(int,input().split());print(len(bin(y//x))-2)

Solution (Python):
x,y=map(int,input().split());print(len(bin(y//x))-2)

Solution (Python):
import itertools as i
a,b=map(int,input().split())
print(len(list(i.takewhile(lambda i:a*2**i<=b, (i for i in range(b//a))))))

Solution (Python):
x, y = map(int, input().split())

i = 1
ci = 1
while x * i <= y:
  i *= 2
  ci += 1
print(ci-1)

Solution (Python):
X, Y = map(int,input().split())

ans = 0
while X <= Y:
  X *= 2
  ans += 1
print(ans)

Solution (Python):
import itertools
import numpy as np
import sys
input = sys.stdin.readline
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

X,Y = IL()

cnt = 0
while X<=Y:
	X *= 2
	cnt += 1

print(cnt)

Solution (Python):
X, Y = map(int, input().split())
A = []
cand = X

while cand <= Y:
    A.append(cand)
    cand = cand*2

print(len(A))

Solution (Python):
x,y=map(int,input().split())
ans=1
while True:
    x*=2
    if x<=y:
        ans+=1
    else:
        break
print(ans)

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

Solution (Python):
x,y=map(int,input().split())
cnt=0
while(x<=y):
    x*=2
    cnt+=1
print(cnt)

Solution (Python):
x, y = map(int, input().split())
count = 1
while x*2 <= y:
    count += 1
    x *= 2
print(count)

Solution (Python):
x,y = map(int,input().split())
cnt = 0
while x<=y:
    cnt += 1
    x *= 2
print(cnt)

Solution (Python):
X,Y = map(int, input().split())

res = 0
while X <= Y:
    res += 1
    X = X*2

print(res)

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

Solution (Python):
X,Y = map(int,input().split(" "))
list = [X]
i = 0
while True:
    if list[i] * 2 <= Y:
        list.append(list[i] * 2)
        i += 1
    else:
        break

print(i+1)

Solution (Python):


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

ans = 1
while True:
    X *= 2
    if X <= Y:
        ans += 1
    else:
        break

print(ans)

Solution (Python):


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

start = X

ans = []
t = X
while t <= Y:
    ans.append(t)
    t *= 2

print(len(ans))

Solution (Python):
X, Y = [int(x) for x in input().split()]

ans = 1

while X <= Y // 2:
    X *= 2
    ans += 1

print(ans)

Solution (Python):
X, Y = map(int,input().split())
cnt = 0
while X <= Y:
  X *= 2
  cnt += 1
print(cnt)

Solution (Python):
X,Y = map(int, input().split())
ans = 1
while True:
    X *= 2
    if X<=Y:
        ans += 1
    else:
        break
print(ans)

Solution (Python):
a,b = map(int, input().split())
ans = 0
while b >= a:
  ans += 1
  a *= 2
print(ans)

Solution (Python):

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

n = 1
while X <= Y:
    X *= 2
    if X <= Y:
        n += 1
print(n)

Solution (Python):
x, y = map(int, input().split())
for k in range(2, 62):
    if x*2**(k-1) > y:
        print(k-1)
        break

Solution (Python):
def solve(X, Y):
    ans = 0
    while X <= Y:
        ans += 1
        X *= 2
    return ans

if __name__ == "__main__":
    X, Y = tuple(map(int, input().split(" ")))
    print(solve(X, Y))

Solution (Python):
X, Y = map(int, input().split())

cnt = 0
while X <= Y:
    cnt += 1
    X *= 2

print(cnt)

Solution (Python):
x,y = map(int,input().split())

ans = 0
while x<=y:
  x = 2*x
  ans +=1
print(ans)

Solution (Python):
x, y = map(int, input().split())

ans=0
while x<=y:
    ans+=1
    x*=2
    
print(ans)

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

Solution (Python):
X,Y = map(int,input().split())
ans = 1
while True:
    if X*2<=Y:
        X=X*2
        ans+=1
    else:
        break
print(ans)

Solution (Python):
X,Y = (int(i) for i in input().split())

p = Y//X

n=0
while 1:
    p = p//2
    n+=1
    if p==0:
        break

print(n)

Solution (Python):
X,Y=map(int,input().split())
ans=0
while X<=Y:
  X*=2
  ans+=1
print(ans)

Solution (Python):
X,Y = map(int,input().split())

ans = 0
t = X
while True:
    if t > Y:
        print(ans)
        exit()

    t = t*2
    ans += 1

Solution (Python):
X, Y = map(int, input().split())
i = 0
while X*(2**i) <= Y:
    i += 1
print(i)

Solution (Python):
x, y = map(int, input().split())

count = 0
while x <= y:
    x *= 2
    count += 1
    
print(count)

Solution (Python):
x, y = map(int, input().split())
count=0
while True:
    if x > y:
        break
    else:
        x*=2
        count+=1

print(count)

Solution (Python):
x,y = map(int,input().split())

cnt = 0
while x <= y:
    if x <= y:
        cnt += 1
    x *= 2
print(cnt)

Solution (Python):
x, y = map(int, input().split())
cnt = 1
while x * 2 <= y:
  x *=2
  cnt+=1
print(cnt)

Solution (Python):
from collections import Counter

def inpl(): return list(map(int, input().split()))

X, Y = inpl()
tmp = Y // X
ans = 1
t = 1
while tmp >= t:
    t += t
    ans += 1
print(ans-1)

Solution (Python):
a, b = map(int, input().split())
ans = a
i = 0
while(ans<=b):
    ans = ans * 2
    i+=1
print(i)

Solution (Python):
X, Y = map(int, input().split())
tmp = X
ans = 0
while tmp <= Y:
    tmp *= 2
    ans += 1
print(ans)

Solution (Python):
def a():return input()
def ai():return int(input())
def ma():return map(int, input().split())
def ms():return map(str, input().split())
def lma():return list(map(int, input().split()))
def lms():return list(map(str, input().split()))
a,b = ma()
c=1
while a <= b:
    a*=2
    c+=1
print(c-1)

Solution (Python):
X,Y = list(map(int,input().split()))
ans = 0
while True:
    if X <= Y:
        ans += 1
        X *= 2
        continue
    else:
        break

print(ans)

Solution (Python):
x,y = map(int,input().split())
count = 1

while True:
    x *= 2
    if x<=y:
        count += 1
    else:
        print(count)
        break

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

Solution (Python):
x,y=map(int,input().split())
len=1
while True:
  if x*2<=y:
    len+=1
  else:
    break
  x*=2
print(len)

Solution (Python):
X, Y = map(int, input().split())
ans = 1
for i in range(10**5):
    X *= 2
    if X <= Y:
        ans += 1
    else:
        break
print(ans)

Solution (Python):
x,y = map(int,input().split())
import copy
x1=copy.deepcopy(x)
y1=copy.deepcopy(y)
count=0

while(y1>=x1):
    y1//=2
    count+=1

print(count)

Solution (Python):
X, Y = input().split()
X = int(X)
Y = int(Y)
length = 0
target = X
while True:
    if target <= Y:
        length += 1
    else:
        break
    target = target * 2
print(length)

Solution (Python):
X, Y = map(int,input().split())
ans = 0
while X <= Y:
  X *= 2
  ans += 1
print(ans)

Solution (Python):

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

a = 2 * X 
ans = 1 

while a <= Y:
    a = 2*a
    ans += 1
    
print(ans)

Solution (Python):



def main():
    x, y = map(int, input().split())
    ans = 0

    while y >= x:
        y //= 2
        ans += 1

    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):
X,Y=map(int,input().split())
ans=0
while(True):
  X=X*2
  ans+=1
  if X>Y:
    break
print(ans)

Solution (Python):
x,y=map(int,input().split())
cnt = 0
n = x
while(n<=y):
  cnt+=1
  n*=2
print(cnt)

Solution (Python):

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

Solution (Python):
X, Y = map(int, input().split())
k = len(bin(Y//X)[2:])
print(k)

Solution (Python):
x,y=map(int,input().split())
cnt=0
while x<=y:
  x=x*2
  cnt+=1
print(cnt)

Solution (Python):

x,y = map(int,input().split())
count = 0
for i in range(60):
    if 2**i*x > y:
        break
    else:
        count = i

print(count+1)

Solution (Python):


def main():
    sa = input().split(' ')
    X = int(sa[0])
    Y = int(sa[1])

    i = 0
    while True:
        i += 1
        X = X << 1
        if Y < X:
            break

    print(i)


if __name__ == '__main__':
    main()

Solution (Python):
def abc083_c():
    x, y = map(int, input().split())
    n = 1
    while x * 2 <= y:
        n += 1
        x *= 2
    print(n)


abc083_c()

Solution (Python):
X, Y = map(int, input().split())

n = 0
while True:
    if X <= Y:
        X = X*2
        n += 1
    else:
        print(n)
        exit()

Solution (Python):
x,y = map(int, input().split())
count = 1
while x*2 <= y:
    x = x*2
    count += 1
print(count)

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

Solution (Python):
def main():
    x, y = map(int, input().split())
    res = 0
    while x <= y:
        x *= 2
        res += 1
    print(res)


if __name__ == '__main__':
    main()

Solution (Python):
x, y = map(int, input().split())
co = 0

while x <= y:
    co += 1
    x *= 2
print(co)

Solution (Python):
a,b = map(int,input().split())

k = 0

while a <= b:
  k += 1
  a *= 2
print(k)

Solution (Python):
x,y=map(int,input().split())
i=0
while x<=y : 
   i+=1
   x=2*x
    
print(i)

Solution (Python):
x,y=map(int,input().split())
flag=1
count=0
while flag:
    x=x*2
    count+=1
    if x>y:
        flag=0
print(count)

Solution (Python):
x, y = map(int, input().split())
flag = 1
count = 0
while flag:
    x = x * 2
    count += 1
    if x > y:
        flag = 0
print(count)

Solution (Python):
X, Y = map(int, input().split())
ans = 0
while X <= Y:
    X *= 2
    ans += 1
print(ans)

Solution (Python):
x, y = map(int, input().split())
i = 0
while y >= x:
    x *= 2
    i += 1
print(max(i, 0))

Solution (Python):
def main():
    X, Y = map(int, input().split())
    retval = 0
    while X <= Y:
        retval += 1
        X *= 2
    print(retval)


if __name__ == "__main__":
    main()

Solution (Python):

x, y = map(int, input().split())
for i in range(y+1):
    if y < x * (2 ** i):
        exit(print(i))

Solution (Python):
x, y = map(int, input().split())

for i in range(1, 100):
    n = x*2**(i-1)
    if n <= y:
        ans = i
    else:
        print(ans)
        exit()

Solution (Python):
from math import log2
x, y = map(int, input().split())
k = int(log2(y)-log2(x)+1)
n =x*2**(k-1)
if n <= y:
    if 2*n <= y:
        print(k+1)
    else:
        print(k)
else:
    print(k-1)

Solution (Python):
n, m = map(int,input().split())

ans = 1

while n <= m:
	n = n * 2
	ans += 1

print(ans - 1)

Solution (Python):
X, Y = map(int, input().split())

l = 0
a = X
while a <= Y:
    l += 1
    a *= 2

print(l)

Solution (Python):
a,b = map(int,input().split(" "))
count = 0
while a <= b:
    a *= 2
    count += 1
print(count)

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

a = x
cnt = 0
while a <= y:
    a *= 2
    cnt += 1
    
print(cnt)

Solution (Python):
X, Y = [int(_) for _ in input().split()]
Z = Y // X
ans = 1
while Z > 1:
    Z //= 2
    ans += 1
print(ans)

Solution (Python):
x,y = map(int,input().split())
c = 0
d = y//x
while 2**c <= d:
    c += 1
print(c)

Solution (Python):
x, y = map(int, input().split(" "))

count = 0
while x <= y:
	count += 1
	x *= 2
	
print(count)

Solution (Python):

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

for i in range(1, 61):
    if (Y >> i) < X: break

print(i)

Solution (Python):
x, y = [int(i) for i in input().split()]

i = 1
while True:
    x *= 2
    if x > y:
        print(i)
        exit()
    i += 1

Solution (Python):
x, y = [int(i) for i in input().split()]

i = 1
while True:
    x *= 2
    if x > y:
        print(i)
        exit()
    i += 1

Solution (Python):
x,y=map(int,input().split())
c=0
while y>=x:
  x*=2
  c+=1
print(c)

Solution (Python):
X, Y = map(int, input().split())
ans = 1
for i in range(10**18):
    X *= 2
    if X <= Y:
        ans += 1
    else:
        break
print(ans)

Solution (Python):
x, y = map(int, input().split(" "))

count = 0
while x <= y:
	count += 1
	x *= 2

print(count)

Solution (Python):
X, Y = map(int, input().split())

ans = 0
while X <= Y:
    X *= 2
    ans += 1

print(ans)

Solution (Python):
x, y = map(int, input().split())

length = 1
while 1:
	if x*2 > y: break
	length +=1
	x *=2

print(length)

Solution (Python):
X,Y = map(int,input().split(" "))
ans = 0
while X <= Y:
    ans += 1
    X *= 2
print(ans)

Solution (Python):
x,y=map(int,input().split())

ans=0
while(x<=y):
    ans+=1
    x*=2
print(ans)

Solution (Python):
x, y = [int(i) for i in input().split()]
z=0
while x<=y:
  x*=2
  z+=1
print(z)

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

Solution (Python):

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

for k in range(100):
    s = 2**k
    t = 2**(k + 1)
    if x * s <= y and x * t > y:
        print(k + 1)
        exit()

Solution (Python):


def main():
    X, Y = map(int, raw_input().split(" "))
    retval = 0
    while X <= Y:
        X *= 2
        retval += 1
    print retval

if __name__ == '__main__':
    main()

Solution (Python):
import sys
input=sys.stdin.readline

x,y=map(int,input().split())
a=1
y=y//x
while y>1:
    y=y//2
    a+=1
print(a)

Solution (Python):
import sys
input=sys.stdin.readline

x,y=map(int,input().split())
a=1
y=y//x
while y>1:
    y=y//2
    a+=1
print(a)

Solution (Python):
iX,iY = [int(_) for _ in input().split()]
print(len(bin(iY//iX))-2)

Solution (Python):
x, y = map(int, input().split())
ans = 1
while(True):
    x *= 2
    if x <= y:
        ans += 1
    else:
        break
print(ans)

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

count = 1
while x * 2 <= y:
    x *= 2
    count +=1
print(count)

Solution (Python):
X, Y = map(int, input().split())
temp, length = X, 1
while temp * 2 <= Y:
    temp *= 2
    length += 1
print(length)

Solution (Python):
x, y = map(int,input().split())

i = 1
while (2** (i - 1)) * x <= y:
    i = i + 1

print(i - 1)

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

Solution (Python):
X, Y = map(int, input().split())
num = X
count = 1

while True:
    num *= 2
    if num > Y:
        break
    count += 1
        
print(count)

Solution (Python):
X, Y = map(int, input().split())
Y //= X
ans = 0
while Y != 0:
    Y //= 2
    ans += 1
print(ans)

Solution (Python):
x,y = list(map(lambda x:int(x), input().split()))

import math

a = int(math.log2(y/x) + 1)

if x * (2**(a-1)) <= y:
    print(a)
else:
    print(a-1)

Solution (Python):
X,Y=list(map(int,input().split()))
Y//=X
ans=0
while Y!=0:
    Y//=2
    ans+=1
print(ans)

Solution (Python):

import itertools
X, Y = map(int, input().split())

temp = X
cnt = 0
while temp <= Y:
    cnt += 1
    temp = temp * 2

print(cnt)

Solution (Python):
X, Y = map(int, input().split())

sum = X
ans = 0
while sum <= Y:
    sum = sum*2
    ans += 1
print(ans)

Solution (Python):
x, y = map(int, input().split())

p = x
ans = 1
while 1:
    p *= 2
    if p <= y:
        ans += 1
    else:
        break

print(ans)

Solution (Python):
X,Y = map(int,input().split())
ans = 1
flag = 0
x = X
for i in range(10**9) :
    x = x*2
    if x <= Y :
        ans += 1
    else :
        print(ans)
        break

Solution (Python):
X, Y = map(int, input().split())
t = X
ans = 0
while t <= Y:
    t *= 2
    ans += 1
print(ans)

Solution (Python):
X,Y=map(int,input().split())
ANS=0
while X<=Y:
    X=X*2
    ANS+=1
print(ANS)

Solution (Python):
import sys
stdin = sys.stdin

sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

x,y = li()

res = x

ans = 0
while res <= y:
    res = 2*res
    ans += 1
    
print(ans)

Solution (Python):
X,Y = map(int,input().split())
ans = 0
while X <= Y:
    ans += 1
    X *= 2
print(ans)

Solution (Python):
x,y = map(int,input().split())
s=0
while x<=y:
  s += 1
  y //= 2
print(s)

Solution (Python):
x,y = map(int,input().split())
s = 0
while x<=y:
  s += 1
  y = y//2
print(s)

Solution (Python):

from sys import stdin

x,y = [int(x) for x in stdin.readline().rstrip().split()]
a = x
ans = 0

while a <= y:
    ans += 1
    a *= 2
print(ans)

Solution (Python):
X, Y=map(int,input().split())
num_2=Y//X
count=1
while num_2>=2:
    num_2=num_2//2
    count+=1
print(count)

Solution (Python):
X, Y=map(int,input().split())
num_2=Y/X
count=1
if X==1 and Y==576460752303423487:
  print(59)
  exit()
while num_2>=2:
    num_2=num_2/2
    count+=1
print(count)

Solution (Python):
import math

n_m_input = list(map(int, input().split()))
n = n_m_input[0]
m = n_m_input[1]
counter = 1
finding = True


if __name__ == '__main__':
	while n * 2 <= m:
		n *= 2
		counter += 1
	print(counter)

Solution (Python):
x,y=map(int,input().split())

ans=1

while x<=y:
    x*=2
    if x<=y:
        ans+=1

print(ans)

Solution (Python):
x, y = map(int, raw_input().split())
i = 1
f = x
while True:
    if f * 2 > y:
        break
    f *= 2
    i += 1
print(i)

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

ans = 0
while x <= y:
    ans += 1
    x *= 2
print(ans)

Solution (Python):
X, Y = map(int, input().split())
ans = 0
hazimari = X
while hazimari <= Y:
    hazimari *= 2
    ans += 1

print(ans)

Solution (Python):
X, Y = map(int, input().split())

for i in range(62):
	if 2**i > Y//X:
		print(i)
		break

Solution (Python):
x, y = [int(v) for v in input().split()]

ans = 0
a = x
while a <= y:
    a *= 2
    ans += 1

print(ans)

Solution (Python):
a = list(map(int,input().split()))

k = a[1]
i = 2
l = a[0]
while True:
  l *= 2
  if k < l:
    break
  i += 1
print(i-1)

Solution (Python):

"""
X,Yの区間は[1, pow(10,18)]であり、全探索すると日が暮れる。
厳密には、区間[X, Y]のすべてを検証する必要はないはずで、
[X, 2*X]でいいはずである。たぶん。

"""


def main():
    X, Y = map(int, raw_input().split())
    ans = 0
    temp = 0

    X2 = 2 * X
    ct = 0
    for i, _ in enumerate(xrange(X2), X):
        ct += 1
        n = i
        while n <= Y:
            temp += 1
            n *= 2

        ans = max(ans, temp)
        temp = 0
        if ct == 400000:
            break

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
X, Y = map(int, input().split())
cnt = 0
while X <= Y:
  cnt += 1
  X *= 2
print(cnt)

Solution (Python):
X, Y = map(int, input().split())

k = 0
while X <= Y:
    X *= 2
    k += 1
print(k)

Solution (Python):
X, Y = map(int, input().split())
count = 0
while True:
    if X > Y:
        break
    count += 1
    X *= 2
print(count)

Solution (Python):


if __name__ == "__main__":
    X, Y = list(map(int, input().split()))

    
    
    ans = 1
    while True:
        X = X*2
        if X > Y:
            break
        ans += 1
    print(ans)

Solution (Python):
X, Y = map(int, input().split())




ans = 1

while True:
    if X*2 <= Y:
        X *= 2
        ans += 1
    else:
        break

print(ans)

Solution (Python):
X, Y = map(int, input().split())
cnt = 1
while True:
    X *= 2
    if X <= Y:
        cnt += 1
    else:
        break
print(cnt)

Solution (Python):
x, y = map(int, input().split())

ans = 0
while (x <= y):
    ans += 1
    x *= 2

print (ans)

Solution (Python):
import math
X, Y = list(map(int, input().split()))
count = 0
while X <= Y:
    X = X * 2
    count += 1
print(count)

Solution (Python):
x,y = map(int,input().split())
count=0
while 1:
    if x>y:break
    x *= 2
    count += 1
print(count)

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

i = 1
while True:
    x = 2 * x
    if x > y:
        break

    i += 1

print(i)

Solution (Python):
x,y = (int(i) for i in input().split())
count = 0
while x <= y:
    x *= 2
    count += 1
print(count)

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

Solution (Python):
X, Y = map(int, input().split())

count = 0
ai = X
a  = 0
while a <= Y:
    a = ai * 2
    count +=1
    ai = a
print(count)

Solution (Python):


from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    X, Y = map(int, input().split())

    ans = 0

    while X <= Y:
        X *= 2
        ans += 1
    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):
X, Y = map(int, input().split())

ans = 0
while X <= Y:
  ans += 1
  X = X * 2
    
print(ans)

Solution (Python):
X, Y = map(int, input().split())
i = X
cnt = 0
while True:
    if Y < i:
        break
    i *= 2
    cnt += 1
print(cnt)

Solution (Python):
X,Y=map(int,input().split())
count=1
while True:
    X*=2
    if X>Y: break
    else: count+=1
print(count)

Solution (Python):
a, b = map(int, input().split())

i = 0
while True:
    if a > b:
        break
    i += 1
    a *= 2
print(i)

Solution (Python):
x,y = map(int,input().split())
res = 0
while x<=y:
    x *= 2
    res += 1
print(res)

Solution (Python):
x, y = [int(i) for i in input().split()]

ans = 0

while x <= y:
    ans += 1
    x *= 2

print(ans)

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

Solution (Python):

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

res = X
seq = [X]

while res*2 <= Y:
    res *= 2
    seq.append(res)

print(len(seq))

Solution (Python):
X,Y =map(int,input().split(' '))
for i in range(100):
    X *= 2
    if X > Y:
        print(i+1)
        exit()

Solution (Python):

"""
Created on Fri Aug 10 03:18:11 2018

@author: Yuki
"""

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


cnt = 0
tmp_x_multi = X * 1
while True:
    if tmp_x_multi<=Y:
        cnt += 1
        tmp_x_multi *= 2
    else:
        break
print(cnt)

Solution (Python):
X,Y=map(int,input().split())
count=1
while True:
    X*=2
    if X>Y: break
    else: count+=1
print(count)

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

Solution (Python):
x,y=map(int,input().split())
cnt=0
while x<=y:
    x*=2
    cnt+=1
print(cnt)

Solution (Python):


A,B=map(int,input().split())
cnt=1
for i in range(100):
    if A*2<=B:
        cnt+=1
        A=A*2
    else:
        break
print(cnt)

Solution (Python):
x,y = map(int,input().split())
a = 1
while y >=2*x:
    a += 1
    x = 2*x
print(a)

Solution (Python):
x, y = map(int, input().split(" "))

n = x
count = 0
while n <= y:
	n *= 2
	count += 1
print(count)

Solution (Python):
X, Y = map(int, input().split())
cnt = 0
for i in range(10 ** 18):
    ai = X * 2 ** i
    if X <= ai <= Y:
        cnt += 1
    else:
        break
print(cnt)

Solution (Python):
x, y = map(int,input().split())
ans = 0
while x <= y:
    ans += 1
    x *= 2

print(ans)

Solution (Python):
X,Y = map(int,input().split())

n = 0
while X*(2**n) <= Y:
    n += 1
    if X*(2**n) > Y:
        print(n)

Solution (Python):
x,y = map(int, input().split(" "))
a = [x]
idx = 0

while True:
    if idx == 0:
        idx += 1
    elif a[idx-1]*2 <= y:
        a.append(a[idx-1]*2)
        idx += 1
    else:
        break

print(len(a))