#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t M; cin >> M; for (int64_t i = 2; i * i < M + 1; i++) { if (M % i == 0) { cout << i << ' ' << M / i << '\n'; return 0; } } cout << 1 << ' ' << M << '\n'; return 0; }