import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main (String[] args) throws java.lang.Exception { // your code goes here // 入力 Scanner sc = new Scanner(System.in); int n = sc.nextInt(); // 計算 int a = 1; int b = 1; int x = 2; while(x*x <= n){ int count = 0; while(n % x == 0){ count++; n = n / x; } for(int i = 0; i < count / 2; i++){ a *= x; } if(count % 2 == 1){ b *= x; } x++; } b *= n; // 出力 System.out.println(a + " " + b); } }