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