#include using namespace std; int main(){ int c; cin >> c; int i=1; while(true){ if(c%i==0){ cout << i << " " << c/i << endl; return 0; }else{ i++; } } return 0; }