#include <bits/stdc++.h>
using namespace std;
template <typename T>
vector<T> divisor(T n) {
  vector<T> res;
  for (T i = 1; (long long)i * i <= n; i++) {
    if (n % i == 0) {
      res.push_back(i);
      if (i != n / i) {
        res.push_back(n / i);
      }
    }
  }
  sort(res.begin(), res.end());
  return res;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  vector<long long> v = divisor(n);
  vector<long long> ans;
  for (auto x : v) {
    long long t = n / x;
    long long tmp = (n - x) * (t) / 2;
    ans.push_back(t + tmp);
  }
  sort(ans.begin(), ans.end());
  int m = ans.size();
  for (int i = 0; i < m; i++) {
    cout << ans[i];
    if (i != m - 1) {
      cout << " ";
    }
  }
  cout << "\n";
  return 0;
}
