#include <bits/stdc++.h>
using llong = long long;
using namespace std;
set<llong> factors;
void f(llong num) {
  factors.insert(1);
  llong to = sqrt(num);
  for (auto i = 2; i <= to; ++i) {
    if (num % i == 0) {
      factors.insert(i);
      factors.insert(num / i);
    }
  }
  factors.insert(num);
}
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  llong n;
  cin >> n;
  f(n);
  set<llong> res;
  for (auto e : factors) {
    res.insert((n + 1 + 1) * (n / e + 1) / 2 - (n + 1));
  }
  for (auto i : res) cout << i << ' ';
  return 0;
}
