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