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