import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n < 1 || n > 1000000000) return; int a = 1, b = n; for (int i = 1; i * i <= n; ++i) { int x = i * i; if (n % x != 0) continue; a = i; b = n / x; } System.out.printf("%d %d%n", a, b); } }