#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  set<long long> s;
  s.insert(1);
  s.insert(n * (n + 1) / 2);
  for (long long i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      long long last = n + 1 - i;
      long long tot = (last - 1) / i + 1;
      s.insert(tot * (1 + last) / 2);
      long long j = n / i;
      last = n + 1 - j;
      tot = (last - 1) / j + 1;
      s.insert(tot * (1 + last) / 2);
    }
  }
  for (auto u : s) cout << u << " ";
  return 0;
}
