#!/usr/bin/env python # -*- coding: utf-8 -*- L = int(input()) N = int(input()) S = input().split() print(2**(L-3)*N)