n,k = map(int,input().split()) print([0,2**(n-k)][n>=0])