#include <bits/stdc++.h>
using namespace std;
using LL = long long;
LL get(LL n, LL k) {
  LL nbk = n / k;
  return (n * (nbk - 1)) / 2 + nbk;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  LL n;
  cin >> n;
  set<LL> ans;
  for (LL k = 1; k * k <= n; k++) {
    if (n % k == 0) {
      ans.insert(get(n, k));
      ans.insert(get(n, n / k));
    }
  }
  for (auto val : ans) cout << val << ' ';
  cout << '\n';
  return 0;
}
