#include using namespace std; using ll = long long; const ll MAX_N = 1000000000000; int main(){ ll n; cin>>n; ll ans1,ans2; ans1=1;ans2=n; for(int i=2;i*i<=n;i++){ if(n%i==0){ ans1=i; ans2=n/i; break; } } cout<