#include <bits/stdc++.h>
using namespace std;
long long a[123456], l, n;
long long get_sum(long long x) {
  long long st = 1, kq = 0;
  while (1) {
    long long d = st + x, c = (n - 1) / x * x + 1;
    kq += ((c - d) / x + 1) * (c + d) / 2 + st;
    st = x - (n - c);
    if (st == 1) return kq;
  }
}
int main() {
  cin >> n;
  for (long long i = 1; i <= trunc(sqrt(n)); i++) {
    if (n % i == 0) {
      l++, a[l] = get_sum(i);
      if (n / i != i) l++, a[l] = get_sum(n / i);
    }
  }
  sort(a + 1, a + 1 + l);
  for (long long i = 1; i <= l; i++) cout << a[i] << " ";
}
