def solve():
    n, k = map(int, input().split())
    if n < k:
        return 0
    return 2 ** n // 2 ** k
print(solve())