import java.util.Scanner; public class HelloWorld { public static void main (String[] args) { Scanner sc = new Scanner(System.in); double n = sc.nextDouble(); sc.close(); boolean flag = false; for (int b = 0; b <= Math.sqrt(n); b ++) { for (int a = 0; a <= Math.sqrt(n); a ++) { if (a * a * b == n) { flag = true; System.out.println(a + " " + b); break; } } if (flag == true) { break; } } if (flag == false) { System.out.println(1 + " " + (int)n); } } }