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