N,K = map(int,input().split()) ans = 0 if N < K else 2 ** (N-K) print(ans)