package No400番台; import java.util.Scanner; public class Q414 { public static void main(String[] args) { new Q414().solver(); } void solver() { Scanner sc = new Scanner(System.in); long M = sc.nextLong(); for (int i = 2; i * i <= M; i++) { if (M % i == 0) { System.out.println(i + " " + (M / i)); return; } } System.out.println(1+" "+M); } }