l, n = [int(input()) for _ in range(2)] lst = list(input().split()) print(2 ** (l - 3) * n)