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