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