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