using System; class Program { static void Main(string[] args) { //ε…₯εŠ› int x = int.Parse(Console.ReadLine()); //ε‡ΊεŠ› if (x == 0) { Console.Write(1); Console.Write(" "); Console.WriteLine(0); } else { //Console.WriteLine(Factorial_(31, 31 - x)); //Console.WriteLine(Factorial(x)); Console.Write(nCm(31, x)); Console.Write(" "); Console.WriteLine(2147483647 * nCm(30, x - 1)); } //ulong Factorial(ulong n) { // if (n == 0) // return 1; // return n * Factorial(n - 1); //} //ulong Factorial_(ulong a, ulong b) { // if (a == b) // return 1; // return a * Factorial_(a - 1, b); //} long nCm(int n, int m) { if (m == 0) return 1; if (n == 0) return 0; return n * nCm(n - 1, m - 1) / m; } //Console.WriteLine(Factorial(31)); //Console.WriteLine(Factorial(2)); //Console.WriteLine(Factorial(3)); } }