#include <bits/stdc++.h>
using namespace std;
long long n;
set<long long> r;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  cin >> n;
  r.insert(1);
  for (long long m = 1; m * m <= n; m++)
    if (n % m == 0) {
      r.insert(n / m + m * ((n / m - 1) * (n / m) / 2));
      long long mm = n / m;
      r.insert(n / mm + mm * ((n / mm - 1) * (n / mm) / 2));
    }
  for (long long x : r) cout << x << " ";
  cout << "\n";
}
