#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long msize = 1e6 + 100;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<int> v;
  v.push_back(n);
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      v.push_back(i);
      v.push_back(n / i);
    }
  }
  set<long long> ans;
  for (auto k : v) {
    long long ii = n / k, i = 0;
    long long ans3 = ii + k * (ii * (ii - 1) / 2), ans2 = 0;
    ans.insert(ans3);
  }
  ans.insert(n * (n + 1) / 2);
  for (auto i : ans) cout << i << " ";
}
