import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.nio.charset.IllegalCharsetNameException;
import java.util.StringTokenizer;

public class TaskC {
        public static void main(String[] args) throws Exception {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                StringTokenizer st;
                PrintWriter pw = new PrintWriter(System.out);

                long n = Long.parseLong(br.readLine());

                long max = Integer.MAX_VALUE;
                long min = -1;
                for(int i=1 ; i<Math.sqrt(n) ; i++) {
                        if(n%i==0) {
                                if(n/i < max) {
                                        max = n/i;
                                        min = i;
                                }
                        }
                }

                if(n == 1) pw.println("1 1");
                else pw.println(min + " " + max);


                pw.flush();
                pw.close();
        }
}
