a,b=map(int,input().split()) c=0 if a-b>=0: c=2**(a-b) print(f"{c}")