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