我63 import math n,m=[int(i) for i in input().split(' &(5528)#39;)] print(math.floor(m/(2*(1-pow(0.5,n)))))