#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, i, s, j;
  cin >> n;
  set<long long> res;
  res.insert(1);
  res.insert(n * (n + 1) / 2);
  k = 2;
  for (i = 2; i * i <= n; i++) {
    s = 0;
    if (n % i == 0) {
      res.insert((2 + n - i) * n / (2 * i));
      j = n / i;
      res.insert((2 + n - j) * n / (2 * j));
    };
  };
  set<long long>::iterator iter;
  for (iter = res.begin(); iter != res.end(); ++iter) {
    cout << *iter << " ";
  };
  return 0;
}
