#include using namespace std; #define REP(i,n) for(int i=0;i ostream& operator<<(ostream& os,const vector& vec){ os << "["; for(const auto& v : vec){ os << v << ","; } os << "]"; return os; } typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef vector vi; typedef vector vvi; ll M; int main(){ cin >> M; ll ans=0; for(ll i=2;i*i<=M;i++){ if(M%i==0){ cout << i << " " << M/i << endl; return 0; } } cout << 1 << " " << M << endl; }