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