L, N = [int(input().strip()) for _ in range(2)] S = input() print(2**(L-3) * N)