import java.io.*; import java.util.*; class Main175 { public static void out (Object out) { System.out.println(out); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int l = Integer.parseInt(br.readLine()); int n = Integer.parseInt(br.readLine()); br.readLine(); out((int)Math.pow(2, l - 3) * n); } }