#include <bits/stdc++.h>
using namespace std;
const long long M = 1e9 + 7;
const long long oo = 1e13;
set<long long> s;
long long ans[1000010];
int main() {
  long long n;
  cin >> n;
  for (int i = 1; i * i <= n; ++i) {
    if (n % i == 0) {
      s.insert(i);
      s.insert(n / i);
    }
  }
  int co = 0;
  for (auto x : s) {
    long long d = n / x, s1 = n - (x - 1) + 1;
    ans[co] = (d * s1) / 2;
    co++;
  }
  reverse(ans, ans + co);
  for (int i = 0; i < co; ++i) {
    cout << ans[i] << ' ';
  }
  cout << endl;
}
