#include <bits/stdc++.h>
using namespace std;
long long sum(long long n, long long k) { return ((2 + (n - 1) * k) * n) / 2; }
signed main() {
  std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> a;
  for (long long i = 1; i < sqrt(n) + 1; i++)
    if (n % i == 0) {
      a.push_back(i);
      if (!(i * i == n)) a.push_back(n / i);
    }
  set<long long> s;
  for (long long i = 0; i < a.size(); i++) s.insert(sum(n / a[i], a[i]));
  for (auto iter : s) cout << iter << " ";
  return 0;
}
