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