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