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