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