def getlist(): return list(map(int, input().split())) N, K = getlist() if N < K: print(0) else: print(2 ** (N - K))