#include <bits/stdc++.h>
using namespace std;
template <typename T>
ostream& operator<<(ostream& out, const vector<T>& vec) {
  out << "[";
  for (long long x : vec) out << x << ", ";
  out << "]";
  return out;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> f;
  long long up = sqrt(n) + 1;
  for (long long z = 1; z < up; z++) {
    if (n % z != 0) continue;
    long long ans = (z - 1) * n / 2 + z;
    f.push_back(ans);
    long long tmp = n / z;
    ans = (tmp - 1) * n / 2 + tmp;
    f.push_back(ans);
    if (z * z == n) f.pop_back();
  }
  sort(f.begin(), f.end());
  for (auto it = f.begin(); it != f.end(); it++) cout << *it << " ";
  cout << '\n';
  return 0;
}
