N, K = [int(i) for i in input().strip().split(' ')] print(2**(N - K) if N >= K else 0)