#include <bits/stdc++.h>
using namespace std;
vector<long long> ans;
int read() {
  char c = getchar();
  int x = 0, f = 1;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * f;
}
int main() {
  int n = read();
  for (int i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      ans.push_back(1LL * (2 + n - i) * (n / i) / 2);
      if (i * i != n) ans.push_back(1LL * (2 + n - (n / i)) * i / 2);
    }
  }
  sort(ans.begin(), ans.end());
  for (int i = 0; i < ans.size(); i++)
    printf("%I64d%c", ans[i], (i == ans.size() - 1) ? '\n' : ' ');
  return 0;
}
