n,k=map(int,input().split()) t=max(n-k,0) print(2**t if t>0 else 0)