using System; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int b=0; int c=0; for(int i = 1; i < a; i++) { for(int j = i; j < a; j++) { if (i * j == a) { b = i; c = j; } } } Console.WriteLine("{0} {1}",b,c); } } }