#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> res;
  res.push_back(n * (n + 1) / 2);
  res.push_back(1);
  for (long long i = 2; i <= sqrt(n); i++)
    if (n % i == 0) {
      long long j = n / i;
      res.push_back((long long)i * j * (j - 1) / 2 + j);
      if (j != i) {
        res.push_back((long long)j * i * (i - 1) / 2 + i);
      }
    }
  sort(res.begin(), res.end());
  for (long long x : res) cout << x << " ";
  return 0;
}
