import java.util.*; class Main { static Scanner s=new Scanner(System.in); static int gInt(){return Integer.parseInt(s.next());} public static void main(String[] args) throws Exception { long n=gInt(),l=gInt(); System.out.println((1<<(n-3))*l); } }