#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const double PI = 3.14159265359;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> facts;
  for (int i = 1; i * i <= n; i++) {
    if (!(n % i)) {
      facts.push_back(i);
      facts.push_back(n / i);
    }
  }
  vector<long long> ans;
  for (int i : facts) {
    long long a = (n - 1) / i;
    ans.push_back(a * (a + 1) * i / 2 + a + 1);
  }
  sort(ans.begin(), ans.end());
  auto it = unique(ans.begin(), ans.end());
  ans.resize(it - ans.begin());
  for (auto i : ans) {
    cout << i << ' ';
  }
  return 0;
}
