#37070: python 紀錄


BensonDC (python戰士)


k,a = map(int,input().split())
i=0
while 2**i!=(k+a)//k:i+=1
print(i)