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