#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  set<long long int> result;
  for (int i = 1; i <= min(100000, n / 2); ++i)
    if (n % i == 0) {
      long long int last = (n + 1) - i;
      long long int count = (last - 1) / i + 1;
      long long int sum = (count * (1 + last)) / 2;
      result.insert(sum);
      last = (n + 1) - (n / i);
      count = (last - 1) / (n / i) + 1;
      sum = (count * (1 + last)) / 2;
      result.insert(sum);
    }
  for (auto a : result) cout << a << ' ';
  cout << endl;
  return 0;
}
