#include <bits/stdc++.h>
long long gcd(long long a, long long b) {
  long long r, i;
  while (b != 0) {
    r = a % b;
    a = b;
    b = r;
  }
  return a;
}
std::set<long long> st;
int main() {
  std::ios::sync_with_stdio(0);
  std::cin.tie(0);
  std::cout.tie(0);
  long long n;
  std::cin >> n;
  for (long long i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      long long k = n / (gcd(n, i));
      long long temp = (k) * (2 + (k - 1) * i);
      temp /= 2;
      st.insert(temp);
      long long cur = n / i;
      k = n / (gcd(n, cur));
      temp = (k) * (2 + (k - 1) * cur);
      temp /= 2;
      st.insert(temp);
    }
  }
  for (auto it : st) {
    std::cout << it << " ";
  }
  std::cout << "\n";
  return 0;
}
