using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int c = int.Parse(str); int ans1 = 0; int ans2 = 0; bool flg = false; for (int i = 1; i <= 1000000000; i++) //左 { for(int j=1;j<=1000000000;j++) //右 { if(i*j==c) { ans1 = i; ans2 = j; flg = true; } } if(flg==true) { break; } } Console.WriteLine(ans1 + " " + ans2); } } }