#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> ans;
  for (long long i = 1; i < sqrt(n); i++) {
    if (n % i == 0) {
      ans.push_back(i);
      ans.push_back(n / i);
    }
  }
  if ((long long)sqrt(n) * (long long)sqrt(n) == n)
    ans.push_back((long long)sqrt(n));
  vector<long long> res;
  for (long long i = 0; i < ans.size(); i++) {
    long long k = ans[i];
    long long r = n / k;
    res.push_back(k * (r * (r - 1) / 2) + r);
  }
  sort(res.begin(), res.end());
  for (long long i = 0; i < res.size(); i++) cout << res[i] << ' ';
  return 0;
}
