a, b = [int(v) for v in input().split(" ")] if a >= b: print(2**(a-b)) else: print(0)