# -*- coding: utf-8 -*- L = int(input()) N = int(input()) S = list(input().split()) print(pow(2,L-3)*N)