L = int(input()) N = int(input()) S = input().split() if L == 3: print(len(S)) else: print(N*2**(L-3))