s = str(input()) s = s.split(" ") n = int(s[0]) k = int(s[1]) num = 0 n = 2**n k_now = 2**k k = 2**k while k_now <= n: k_now += k num += 1 print(num)