N, K = [int(i) for i in input().split()] print(int(2 ** (N - K)))