L = int(input()) N = int(input()) S = input() p = 2 ** (L - 3) ans = p * N print(ans)