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