#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  map<long long, long long> m;
  vector<long long> v;
  for (long long i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      v.push_back(i);
    }
  }
  for (long long j = 0; j < v.size(); j++) {
    long long i = v[j];
    long long t = ((n + 1 + 1) * ((n / i) + 1)) / 2;
    t = t - n - 1;
    m[t] = 1;
    long long z = ((n + 1 + 1) * (i + 1)) / 2;
    z = z - n - 1;
    m[z] = 1;
  }
  for (auto i : m) {
    cout << i.first << ' ';
  }
  return 0;
}
