import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner (System.in); int n = koko.nextInt(); int l = koko.nextInt(); int a = l*(int)Math.pow(2,n-3); System.out.println(a); } }