#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a;
  cin >> a;
  vector<long long> vec;
  map<long long, bool> M;
  for (int i = 1; i <= sqrt(a); i++) {
    if (a % i == 0) {
      vec.push_back(i);
      M[i] = 1;
    }
  }
  long long y = vec.size();
  for (int i = 0; i < y; i++) {
    if (M[a / vec[i]] == 0) {
      vec.push_back(a / vec[i]);
    }
  }
  vector<long long> rsp;
  for (int i = 0; i < vec.size(); i++) {
    rsp.push_back((((1 + (1 - vec[i]) + a) * (a / vec[i]))) / 2);
  }
  sort(rsp.begin(), rsp.end());
  for (int i = 0; i < rsp.size(); i++) cout << rsp[i] << " ";
  cout << endl;
}
