#include <bits/stdc++.h>
using namespace std;
long long floorSqrt(long long x) {
  if (x == 0 || x == 1) return x;
  long long start = 1, end = x, ans;
  while (start <= end) {
    long long mid = (start + end) / 2;
    if (mid * mid == x) return mid;
    if (mid * mid < x) {
      start = mid + 1;
      ans = mid;
    } else
      end = mid - 1;
  }
  return ans;
}
set<long long> divn;
void printDivisors(long long n) {
  for (long long i = 1; i <= floorSqrt(n); i++) {
    if (n % i == 0) {
      if (n / i == i)
        divn.insert(i);
      else {
        divn.insert(i);
        divn.insert(n / i);
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int TESTS = 1;
  while (TESTS--) {
    long long n;
    cin >> n;
    set<long long> a;
    printDivisors(n);
    for (auto it = divn.begin(); it != divn.end(); it++) {
      long long di = *it;
      long long n1 = n / di;
      a.insert((n1 * (2 + (n1 - 1) * di)) / 2);
    }
    for (auto it = a.begin(); it != a.end(); it++) cout << *it << " ";
  }
  return 0;
}
