l = int(input()) n = int(input()) S = list(input().split()) print(n * pow(2, l - 3))