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