L = int(input()) n = int(input()) s = input().split() res = n * 2 ** (L - 3) print(res)