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