import java.util.*;
 
public class Main
{   
    public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long x = scan.nextInt();
		
		long b = x;
		long a = x/b;
		System.out.println(a +" "+ b);
		
	}
}