N, K = map(int, input().split()) print(2**(N-K))