#include #define int long long using namespace std; signed main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin>>N; int sum=0; for(int i=1;i*i<=N;i++){ if(N%i==0){ sum+=i; if(N/i!=i) sum+=N/i; } } cout<