#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> V;
  for (long long i = 1; i * i <= n; ++i) {
    if (!(n % i)) {
      V.push_back(i);
      V.push_back(n / i);
    }
  }
  sort(V.begin(), V.end());
  for (long long i = V.size() - 1; i >= 0; --i)
    if (i == V.size() - 1 || V[i + 1] != V[i])
      cout << n * (2 + V[i] * (n / V[i] - 1)) / 2 / V[i] << ' ';
  cout << endl;
}
