#include <bits/stdc++.h>
using namespace std;
const int N = 1010;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> v;
  for (int i = 1; i * i <= n; i++) {
    if (n % i) continue;
    v.push_back(i);
    if (i * i != n) v.push_back(n / i);
  }
  sort(v.rbegin(), v.rend());
  for (auto a : v) {
    long long k = (n / a) * (n + 2 - a) / 2;
    cout << k << " ";
  }
  return 0;
}
