#include #define p(s) cout<<(s)<>N>>K; int mn=N; for(int i=2;i*i<=N;i++){ if(N%i==0){ mn=i; break; } } p(N/mn); return 0; }