#include <bits/stdc++.h>
using namespace std;
int n, i, k, rad, d, p;
unsigned long long v[100005];
int main() {
  cin >> n;
  rad = sqrt(n);
  for (i = 1; i <= rad; i++) {
    if (n % i == 0) {
      v[++k] =
          (unsigned long long)(n / i) * (unsigned long long)(2 + n - i) / 2;
      d = n / i;
      cout << (unsigned long long)(n / d) * (unsigned long long)(2 + n - d) / 2
           << ' ';
    }
  }
  if (rad * rad == n) k--;
  for (i = k; i >= 1; i--) cout << v[i] << ' ';
  return 0;
}
