#include <bits/stdc++.h>
long long a;
std::set<long long> ans;
int main() {
  scanf("%lld", &a);
  ans.insert(1ll);
  ans.insert((1ll + a) * a / 2ll);
  for (long long i = 2; i * i <= a; ++i) {
    if (a % i) continue;
    ans.insert((1ll + a - i + 1ll) * (a / i) / 2ll);
    ans.insert((1ll + a - a / i + 1ll) * i / 2ll);
  }
  for (const auto &u : ans) printf("%lld ", u);
  putchar('\n');
  return 0;
}
