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 = 2; i <= 9; i++) { for(int j=2;j<=9;j++) { if (c % i == 0) { ans1 = i; ans2 = c / j; if(j*ans1==c) { flg = true; break; } } } if(flg==true) { break; } } Console.WriteLine(ans1 + " " + ans2); } } }