#include <bits/stdc++.h>
using namespace std;
long long n;
vector<long long> divs;
void init() {
  for (long long i = 1; i * i <= n; i++) {
    if (!(n % i)) {
      if (n / i == i)
        divs.push_back(i);
      else {
        divs.push_back(i);
        divs.push_back(n / i);
      }
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  init();
  vector<long long> otp;
  for (auto i : divs) {
    long long a = 1 + ((n + 1) - i);
    long long b = n / i;
    otp.push_back((a * b) / 2);
  }
  sort(otp.begin(), otp.end());
  for (auto i : otp) cout << i << " ";
  return 0;
}
