import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long in; in = sc.nextLong(); for(long i = 2;; i++) { if(in % i == 0) { System.out.println(in / i + " " + i); break; } if((double)i >= Math.sqrt(in)) { System.out.println(in + " " + 1); break; } } sc.close(); } }