#include using namespace std; int main(void) { long long int m; cin >> m; cin.tie(0); ios::sync_with_stdio(false); for (long long int i = 2; i * i <= m; i++) { if(!(m%i)) { cout << m/i << " " << i << endl; return 0; } } cout << 1 << " " << m << endl; return 0; }