using System; using System.Linq; class Program { static void Main() { var i = Console.ReadLine().Split().Select(int.Parse).ToArray(); var bitInt = (i[0] | i[1]); var ans = Factorial(bitInt); Console.WriteLine(ans); } public static long Factorial(int n) { if (n == 0) { return 1L; } else { return n * Factorial(n - 1); } } }