#include #define ALL(v) std::begin(v),std::end(v) using lint=long long; using lubl=long double; void cmn(lint&x,lint y){if(x>y)x=y;} void cmx(lint&x,lint y){if(x>n; std::vectordiv; for(lint i=1;i*i<=n;i++){ if(n%i)continue; div.push_back(i); if(i*i!=n)div.push_back(n/i); } std::sort(ALL(div)); lint min=n,max=0; int sz=div.size(); for(lint i=0;i