using System; public class Multiply{ public static void Main(){ int c = int.Parse(Console.ReadLine()); int a = 0; int b = 0; for(int i = 1; i < c; i++){ if(c % i == 0){ a = i; b = c / a; break; } else { continue; } } Console.WriteLine(a + " " + b); } }