L=input() N=input() A=raw_input().split() print (1 << (L - 3)) * N