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]); if (a == b) { Console.WriteLine(1); return; } int count = 0; double w = Math.Pow(2, a); if (b == 0) { Console.WriteLine(w); return; } double e = Math.Pow(2, b); for (int i = 1; i < w; i++) { if (i % e == 0) { count++; } } Console.WriteLine(count); } }