#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  set<int> f;
  for (int x = 1; x * x <= n; ++x) {
    if (n % x == 0) {
      f.insert(x);
      if (x * x != n) {
        f.insert(n / x);
      }
    }
  }
  set<int64_t> ans;
  for (int g : f) {
    ans.insert(1LL * n / g * (n / g - 1) / 2 * g + n / g);
  }
  for (int64_t v : ans) {
    cout << v << ' ';
  }
  cout << endl;
  return 0;
}
