def get(): return list(map(int, input().strip().split(' '))) N, K = get() x = 1 << (N - K) print(x)