#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<long long> ans;
  vector<int> divisors;
  for (int d = 1; d * d <= n; ++d) {
    if (n % d) {
      continue;
    }
    divisors.push_back(d);
    if (d * d == n) {
      continue;
    }
    divisors.push_back(n / d);
  }
  for (int d : divisors) {
    long long k = n / d;
    ans.push_back(k + k * (k - 1) / 2 * d);
  }
  sort((ans).begin(), (ans).end());
  for (long long x : ans) {
    cout << x << " ";
  }
  cout << "\n";
}
