#include <bits/stdc++.h>
using namespace std;
void solve(void);
int main() {
  {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    { solve(); }
  }
  return 0;
}
void solve() {
  long long int n, i;
  cin >> n;
  vector<long long int> v;
  for (i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      v.push_back(i);
      if (i != n / i) v.push_back(n / i);
    }
  }
  sort(v.rbegin(), v.rend());
  for (auto x : v) {
    long long int len = n / x;
    long long int a1 = 1;
    long long int aend = 1 + (len - 1) * x;
    cout << (len * (a1 + aend)) / 2 << " ";
  }
  cout << endl;
}
