#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int main(void) {
  long long n;
  scanf("%lld", &n);
  for (long long i = 1; i * i <= n; i++) {
    if (n % i != 0) continue;
    v.push_back((i + (n / i) * ((i * (i - 1)) / 2)));
    if (i != n / i) v.push_back((n / i) + (i * (((n / i) * (n / i - 1)) / 2)));
  }
  sort(v.begin(), v.end());
  for (auto x : v) printf("%lld ", x);
  return 0;
}
