N, K = map(int, raw_input().split()) print 2 ** max(0, (N - K))