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