#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void Cin(T &x) {
  register char c;
  bool neg = 0;
  for (c = getchar(); c < '0' || c > '9'; c = getchar())
    if (c == '-') neg = 1;
  for (x = 0; c >= '0' && c <= '9'; c = getchar()) x = x * 10 + c - '0';
  if (neg) x = -x;
}
template <typename T, typename... Ts>
inline void Cin(T &x, Ts &...xs) {
  Cin(x);
  Cin(xs...);
}
template <typename T>
inline void Out(T x) {
  if (x > 9) Out(x / 10);
  putchar(x % 10 + '0');
}
template <typename T>
inline void Cout(T x) {
  if (x < 0) putchar('-'), x = -x;
  Out(x);
}
template <typename T>
inline void Cout(T x, char c) {
  Cout(x);
  putchar(c);
}
template <typename T, typename... Ts>
inline void Cout(T x, char c, Ts... xs) {
  Cout(x);
  putchar(c);
  Cout(xs...);
}
int n;
vector<long long> ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  int sqrtn = sqrt(n);
  for (int i = 1; i <= sqrtn; ++i)
    if (n % i == 0) {
      int j = n / i;
      ans.push_back(j + (long long)j * (j - 1) / 2 * i);
      if (j != i) ans.push_back(i + (long long)i * (i - 1) / 2 * j);
    }
  sort(ans.begin(), ans.end());
  for (auto &a : ans) cout << a << ' ';
  return 0;
}
