#include <bits/stdc++.h>
using namespace std;
const long long int inf =
    (long long int)1000 * 1000 * 1000 * 1000 * 1000 * 1000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  cin >> n;
  set<long long int> ans;
  for (long long int a = 1; a * a <= n; a++) {
    if (n % a != 0) continue;
    long long int b = n / a;
    long long int e = n + 2 - a;
    e *= (n / a);
    e /= 2;
    ans.insert(e);
    e = n + 2 - b;
    e *= (n / b);
    e /= 2;
    ans.insert(e);
  }
  for (auto it : ans) cout << it << " ";
  return 0;
}
