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