using System; using System.Collections.Generic; using System.Linq; namespace yukicodeX { public class ProgramX { public static int Solver(System.IO.TextReader reader) { var l = int.Parse(reader.ReadLine()); var n = int.Parse( reader.ReadLine() ); return (int)Math.Pow(2,l-3) * n; } private static void Main() { Console.WriteLine( Solver( Console.In ) ); } } }