#include #include int main(void) { long m,i; scanf("%ld",&m); for(i=2;i<=(int)sqrt(m);i++){ if(m%i==0) break; } if(i==(int)sqrt(m)+1)printf("1 %ld",m); else printf("%ld %ld",m/i,m/(m/i)); return 0; }