N,K = map(int,input().split())
serch = 2 ** N
mod=2**K
print(serch//mod)