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