public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int a = int.Parse(str[0]); int b = int.Parse(str[1]); int n = 2; int q = 2; int count = 0; for(int i = 1;i < a;i++) { n *= 2; } for(int i = 1;i < b;i++) { q *= 2; } if(b == 0) { Console.WriteLine(n); return; } for(int i = 1;i <=n;i++) { if(i % q == 0) { count++; } } Console.WriteLine(count); } }