#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long int n;
  cin >> n;
  vector<long long int> nums;
  long long int mid = sqrt(n);
  for (long long int k = 1; k <= mid; k++) {
    if (n % k == 0) {
      nums.push_back(k);
    }
  }
  for (long long int i = 0; i < nums.size(); i++) {
    long long int k = n / nums[i];
    if (k == nums[i]) break;
    cout << (1 + 1 + ((n / k) - 1) * k) * (n / k) / 2 << ' ';
  }
  for (long long int i = nums.size() - 1; i >= 0; i--) {
    long long int k = nums[i];
    cout << (1 + 1 + ((n / k) - 1) * k) * (n / k) / 2 << ' ';
  }
  return 0;
}
