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