#include <bits/stdc++.h>
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using namespace std;
int main() {
  ll n;
  cin >> n;
  set<ll> funvs;
  for (ll d = 1; d * d <= n; d++) {
    if (n % d != 0) continue;
    ll m = n / d;
    funvs.insert(d * (m * (m - 1)) / 2 + m);
    m = n / (n / d);
    if (d * d != n) funvs.insert((n / d) * (m * (m - 1)) / 2 + m);
  }
  vector<ll> v(funvs.begin(), funvs.end());
  for (ll& x : v) cout << x << " ";
  return 0;
}
