#include using namespace std; int main(){ int in,i; int ans=0; cin>>in; for(i=1;i<=in;i++){ if((in%i)==0){ ans+=i; } } cout<