L = int(input()) N = int(input()) S = list(input().split()) ans = N * 2**(L-3) print(ans)