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