using System; using System.Linq; class Sample { static void Main(string[] args) { int[] N = Console.ReadLine().Trim() .Split(' ') .Select(int.Parse) .ToArray(); double count = 0; var n = Math.Pow(2, N[1]); if (N[1] == 0) { count = Math.Pow(2, N[0]); } else { for (var i = n; i <= Math.Pow(2, N[0]); i+=n) { count += 1; } } Console.WriteLine(count); } }