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