#include #include using namespace std; #define int long long signed main(){ int M; cin>> M; if(M==1){ cout<< 1<< " "<< 1<< endl; return 0; } for(int i=2; i<=sqrt(M); i++){ if(M%i==0){ cout<< i<< " "<< M/i<< endl; return 0; } } cout<< 1<< " "<< M<< endl; return 0; }