#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n;
  cin >> n;
  vector<long long> res;
  for (long long i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      res.push_back(n / i * (2 + i * (n / i - 1)) / 2);
      if (i * i == n) break;
      res.push_back(i * (2 + (n / i) * (i - 1)) / 2);
    }
  }
  sort(res.begin(), res.end());
  for (auto l : res) printf("%lld ", l);
  printf("\n");
  return 0;
}
