#include <bits/stdc++.h>
using namespace std;
int a[100000];
long long int k = 0;
void printDivisors(long long int n) {
  k = 0;
  for (long long int i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      if (n / i == i)
        a[k++] = i;
      else {
        a[k++] = i;
        a[k++] = n / i;
      }
    }
  }
}
int main() {
  long long int n;
  cin >> n;
  set<long long int> w;
  printDivisors(n);
  sort(a, a + k);
  for (int i = 0; i < k; ++i) {
    long long int s = n / a[i] + (n * (n / a[i] + 1)) / 2 - n;
    w.insert(s);
  }
  for (auto it = w.begin(); it != w.end(); it++) cout << *it << " ";
  return 0;
}
