using System; class Kakezan { static void Main(String[] args) { long M = int.Parse(Console.ReadLine()); if(M == 1) { Console.WriteLine("1 1"); return; } for(long i=2; i<=M; i++) { if(M % i == 0) { //Console.WriteLine("{0} {1}", i, M/i); Console.Write(i); Console.Write(" "); Console.WriteLine((long)(M/i)); break; } } } }