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