#include <bits/stdc++.h>
using namespace std;
long long int calc(long long int n, long long int i) {
  i = n / i;
  long long int temp, temp0;
  temp = n / i;
  temp *= (temp + 1);
  temp /= 2;
  temp *= i;
  temp0 = n / i;
  temp0 *= (i - 1);
  temp = temp - temp0;
  return temp;
}
int main() {
  long long int n, k = 1, temp = 0, temp0 = 0, i = 0;
  scanf("%lld", &n);
  vector<long long int> ans;
  vector<long long int>::iterator it;
  ans.push_back(1);
  ans.push_back(((n * (n + 1)) / 2));
  for (i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) {
      if (n / i == i)
        temp = calc(n, n / i);
      else {
        temp = calc(n, n / i);
        ans.push_back(temp);
        temp = calc(n, i);
      }
      ans.push_back(temp);
    }
  }
  sort(ans.begin(), ans.end());
  for (it = ans.begin(); it != ans.end(); it++) printf("%lld ", *it);
  printf("\n");
}
