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