import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt()-3, n = sc.nextInt(); String s = sc.nextLine(); for(int i = 0; i < m; i++){ n*=2; } System.out.println(n); } }