#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio;
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  vector<long long int> factors;
  set<long long int> st;
  for (long long int i = 1; i * i <= n; i++)
    if (n % i == 0) {
      factors.push_back(i);
      factors.push_back(n / i);
    }
  sort(factors.begin(), factors.end());
  long long int answer = 0;
  for (long long int i = 0; i < factors.size(); i++) {
    long long int temp = n / factors[i];
    temp *= (1 + n - factors[i] + 1);
    temp /= 2;
    st.insert(temp);
  }
  for (auto itr : st) cout << itr << ' ';
  return 0;
}
