using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tes { class contest { static void Main(string[] args) { long num = long.Parse(Console.ReadLine()); var ans = new List(); if (num <= 2) { ans.Add((num / 1)); ans.Add(1); } else { for (int i = 2; i <= num; i++) { if (num % i == 0) { ans.Add(i); ans.Add((num / i)); break; } } } Console.WriteLine(string.Format("{0} {1}",ans[0], ans[1])); } } }