#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n;
  cin >> n;
  set<ll> ans;
  for (ll k = 1; k * k <= n; k++) {
    if (n % k == 0) {
      ans.insert((n - k + 2) * (n / k) / 2);
      ans.insert((n - n / k + 2) * k / 2);
    }
  }
  for (auto i : ans) {
    cout << i << " ";
  }
  return 0;
}
