n, k = map(int, input().split()) if n - k > 0: print(pow(2, n - k)) else: print(0)