#include <iostream>
using namespace std;


int suma_divisors(int x);


int main () {
    int x;
    while (cin >> x) cout << suma_divisors(x) << endl;
    return 0;
}
