#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a == 0 || b == 0) {
    return max(a, b);
  } else {
    return gcd(b, a % b);
  }
}
signed main() {
  ios::sync_with_stdio(NULL);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  set<long long> s;
  s.insert(1);
  long long sqn = ceil(sqrt(n)) + 3;
  for (long long i = 1; i < sqn; i++) {
    long long k = gcd(n, i);
    long long m = n / k;
    long long ans = m + k * m * (m - 1) / 2;
    s.insert(ans);
    k = gcd(n, n / i);
    m = n / k;
    ans = m + k * m * (m - 1) / 2;
    s.insert(ans);
  }
  for (auto e : s) {
    cout << e << " ";
  }
  return 0;
}
