#include <bits/stdc++.h>
using namespace std;
long long play(long long n, long long k) { return (n * (k - 1) / 2 + k); }
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(play(n, i));
      if (i * i != n) ans.push_back(play(n, n / i));
    }
  }
  unique(ans.begin(), ans.end());
  sort(ans.begin(), ans.end());
  for (int i = 0; i < ans.size(); ++i) cout << ans[i] << " ";
  return 0;
}
