#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> v;
  v.push_back(n * (n + 1) / 2);
  v.push_back(1);
  for (int i = 2; i <= sqrt(n); ++i) {
    if (n % i == 0) {
      if (i <= n / 2) {
        long long int k = n - 1;
        k = k / i;
        long long int o = k;
        k = k * (k + 1) / 2;
        k = (k * i) + o + 1;
        v.push_back(k);
      }
      long long int l = n / i;
      if (l <= n / 2 && l != i) {
        long long int k = n - 1;
        k = k / l;
        long long int o = k;
        k = k * (k + 1) / 2;
        k = (k * l) + o + 1;
        v.push_back(k);
      }
    }
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < v.size(); ++i) {
    cout << v[i] << " ";
  }
  cout << endl;
  return 0;
}
