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