Problem: Today, Osama gave Fadi an integer X, and Fadi was wondering about the minimum possible value of max(a, b) such that LCM(a, b) equals X. Both a and b should be positive integers.

LCM(a, b) is the smallest positive integer that is divisible by both a and b. For example, LCM(6, 8) = 24, LCM(4, 12) = 12, LCM(2, 3) = 6.

Of course, Fadi immediately knew the answer. Can you be just like Fadi and find any such pair?

Input

The first and only line contains an integer X (1 ≤ X ≤ 10^{12}).

Output

Print two positive integers, a and b, such that the value of max(a, b) is minimum possible and LCM(a, b) equals X. If there are several possible such pairs, you can print any.

Examples

Input


2


Output


1 2


Input


6


Output


2 3


Input


4


Output


1 4


Input


1


Output


1 1

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;
/* REMINDERS
 * CHECK INT VS LONG, IF YOU NEED TO STORE LARGE NUMBERS
 * CHECK CONSTRAINTS, C <= N <= F...
 * CHECK SPECIAL CASES, N = 1...
 * CHECK ARRAY BOUNDS, HOW BIG ARRAY HAS TO BE
 * TO TEST TLE/MLE, PLUG IN MAX VALS ALLOWED AND SEE WHAT HAPPENS
 * ALSO CALCULATE BIG-O, OVERALL TIME COMPLEXITY
 */
 
 
public class FadiLCMEfficient {
	public static void main(String[] args) throws IOException {
		//get input separately
		BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter p = new PrintWriter(new BufferedOutputStream(System.out));
		StringTokenizer s = new StringTokenizer(b.readLine());
		long x = Long.parseLong(s.nextToken());
		
		//edge case: x = 1
		long[] ints = new long[] {1,1};
		if (x != 1) {
			ints = printDivisors(x);
			Arrays.sort(ints);
		} 
		p.println(ints[0] + " " + ints[1]);
		p.close();
		
 
	}
 
	// Recursive method to return gcd of a and b 
	public static long gcd(long a, long b) 
    { 
    if (a == 0) 
        return b;  
    return gcd(b % a, a);  
    } 
      
    // method to return LCM of two numbers 
    public static long lcm(long a, long b) 
    { 
        return (a*b)/gcd(a, b); 
    } 
    public static long[] printDivisors(long n) 
    { 
    	//find smallest such factors, taking the max
    	long curr = n;
    	long first = 0;
    	long sec = 0;
    	
        //find first divisors under sqrt n
    	for (long i = (long)(Math.sqrt(n)); i > 0; i--) {
    		if (n % i == 0 && lcm(i, n / i) == n) {
    			curr = i;
    			break;
    		}
    	}
        
        return new long[] {curr, n / curr};
            	
                
    } 
	
	
	
 
}