using System; using System.Collections.Generic; using System.Linq; namespace yukicoder { public class Program { public static void Main() { var n = int.Parse(Console.ReadLine()); if (n < 4) { Console.WriteLine("1 " + n); } else { var c = true; for (var i = 2; i < (int)Math.Sqrt(n); i++) { if (n % i == 0) { Console.WriteLine(i + " " + n / i); c = false; break; } } if (c) { Console.WriteLine("1 " + n); } } } } }