import math data_n = input() data_s = data_n.split(" ") N_num = int(data_s[0]) K_num = int(data_s[1]) result = 0 if(N_num >= K_num): result = int(math.pow(2,N_num - K_num)) print(result)