#include #include int main(){ int c; int i; int t=1; int a,b; scanf("%d",&c); for(i=1;t==1;i++){ if(c%i==0){ a=i; b=c/i; t=0; } } printf("%d %d",a,b); return 0; }