n,k=map(int,input().split());a=[] if n>=k: print(2**(n-k)) else: print(0)