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()); long tmp = (long)Math.Sqrt(num); var list = new List(); for (int i = 2; i <= tmp; i++) { if (num % i == 0) { list.Add(i); list.Add(num / i); break; } } if (list.Count() == 0) Console.WriteLine(1 + " " + num / 1); else Console.WriteLine(list[0]+" "+list[1]); } } }