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