from sys import stdin N, K = [int(x) for x in stdin.readline().rstrip().split()] a = pow(2, K) ans = int((pow(2,N)) / a) print(ans, '\n')