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