L = int(input()) N = int(input()) KODON = list(input().split()) print(N * (2 ** (L - 3)))