#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ ll 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; }