import java.util.Scanner; public class Kakezan{ public static void main(String[] args){ Scanner sc1 = new Scanner(System.in); int c = sc1.nextInt(); int a = 0; int b = 0; for(int i = 1;; i++){ if(c % i == 0){ a = i; b = c / i; break; } } System.out.print(a); System.out.println(" " + b); } }