using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yuki414 { class Program { static void Main(string[] args) { long m = long.Parse(Console.ReadLine()); if (m % 2 == 0) { Console.WriteLine(2+" "+m/2); } else { bool flag = true; for (int i = 3; i*i <= m ; i+=2) { if (m % i == 0) { Console.WriteLine(i+" "+m/i); flag = false; break; } } if (flag) { Console.WriteLine(1+" "+m); } } } } }