using System; public class Test { public static void Main() { var M = long.Parse(Console.ReadLine()); long x = 1; long y = M; for(long i = 2; i * i <= M; i++) { if(M % i == 0) { x = i; y /= i; break; } } Console.WriteLine(x + " " + y); } }