#simpleDNA L = int(input()) N = int(input()) S = list(map(str , input().split())) print(2**(L - 3) * N)