n, k = map(int, input().split()) print(1 << n - k if n >= k else 0)