#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ ll N; cin >> N; map mp; for(int i = 1; i*i <= N; i++){ if(N%i == 0){ mp[N/i]++; mp[i]++; } } ll ans = 0; for(auto p: mp){ ans += p.first; } cout << ans << endl; }