#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, x, m = 0, e;
  scanf("%lld", &n);
  long long int a[200005];
  for (i = 1; i <= sqrt(n); i++) {
    if (n % i != 0) continue;
    x = n / i;
    a[m] = (x + ((x * (x - 1) / 2) * i));
    m++;
    if (x != i) {
      a[m] = (i + ((i * (i - 1) / 2) * x));
      m++;
    }
  }
  sort(a, a + m);
  for (i = 0; i < m; i++) printf("%lld ", a[i]);
  cout << endl;
  return 0;
}
