#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i, t, sum;
  cin >> n;
  vector<long long> v, a;
  set<long long> s;
  for (i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) {
      s.insert(i);
      long long u = n / i;
      s.insert(u);
    }
  }
  set<long long>::iterator it;
  for (it = s.begin(); it != s.end(); ++it) a.push_back(*(it));
  v.push_back(1);
  for (i = 0; i < int(a.size()); i++) {
    t = n / a[i];
    sum = (t * (2 + (a[i] * (t - 1)))) / 2;
    v.push_back(sum);
  }
  long long d = (n * (n + 1)) / 2;
  v.push_back(d);
  sort(v.begin(), v.end());
  for (i = 0; i < int(v.size()); i++) cout << v[i] << " ";
  return 0;
}
