#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
using namespace std;
vector<long long> div(long long n) {
  vector<long long> ans;
  for (long long i = 1; i * i <= n; ++i) {
    if (n % i == 0) {
      ans.push_back(i);
      if (n / i != i) {
        ans.push_back(n / i);
      }
    }
  }
  sort(ans.rbegin(), ans.rend());
  return ans;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> dd = div(n);
  for (auto it : dd) {
    cout << (1 + (n + 1)) * (n / it + 1) / 2 - (n + 1) << ' ';
  }
}
