#include using namespace std; long N,ans; main() { cin>>N; for(long i=1;i*i<=N;i++) { if(N%i==0) { ans+=i; if(i