#include using namespace std; #define REP(i,a) for(int i = 0; i < (a); i++) #define ALL(a) (a).begin(),(a).end() typedef long long ll; typedef pair P; const int INF = 1e9; const int MOD = 1e9 + 7; map prime_factor(long long n){ map mp; for(long long i = 2; i * i <= n; i++){ while(n % i == 0){ mp[i]++; n /= i; } } if(n != 1) mp[n]++; return mp; } signed main(){ ll c; cin >> c; map mp = prime_factor(c); for(auto i : mp){ cout << i.first << " " << c / i.first << endl; break; } }