#include<iostream> using namespace std; int main(){ int a,b; cin>>a; for(int b;b>a;b++){ if(a%b==0) c=c+b; } return 0; }