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