#aaaaaaaaaaaaaaaaaaaaaaaaa x,n=map(int,input().split()) if x==1: print((pow(2,n+1)-1)/(pow(2,n+1))) else: was