N, K = map(int, input().split()) if K > N: print(0) exit() print(pow(2, max(0, N-K)))