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