import java.util.*; import static java.lang.System.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int leng = sc.nextInt(); int n = sc.nextInt(); String s = sc.next(); out.println((1<<(leng-3))*n); } }