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