#include <bits/stdc++.h>
using namespace std;
void jabru() {
  long long n;
  cin >> n;
  set<long long> s;
  s.insert(1);
  long long sum = ((n) * (n + 1)) / 2;
  s.insert(sum);
  for (long long i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      long long one = n / i;
      long long two = i;
      long long now = (n - 1) / i + 1;
      long long ans = (now) * (2 + (now - 1) * i) / 2;
      s.insert(ans);
      now = (n - 1) / one + 1;
      ans = (now) * (2 + (now - 1) * one) / 2;
      s.insert(ans);
    }
  }
  for (auto x : s) {
    cout << x << " ";
  }
  cout << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t;
  t = 1;
  while (t--) {
    jabru();
  }
  return 0;
}
