L = input() N = input() C = raw_input().split() l = L - 3 print 2**l*N