#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  scanf("%ld", &n);
  vector<long long> ans;
  for (long long i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      long long div = n / i;
      long long sum = ((div * 1LL) * (2 + (div - 1) * i)) / 2;
      ans.push_back(sum);
      if (div == i) continue;
      sum = (i * 1LL * (2 + (i - 1) * div)) / 2;
      ans.push_back(sum);
    }
  }
  sort(ans.begin(), ans.end());
  for (auto num : ans) cout << num << " ";
  return 0;
}
