#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  scanf(" %lld", &n);
  set<long long int> ans;
  for (long long int i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      long long int x = n / i - 1;
      long long int mx = 1 + x * i;
      long long int t = (1 + mx) * (n / i) / 2;
      ans.insert(t);
      if ((n / i) == i) continue;
      x = (n / (n / i)) - 1;
      mx = 1 + x * (n / i);
      t = (1 + mx) * (n / (n / i)) / 2;
      ans.insert(t);
    }
  }
  if (n == 2) {
    printf("1 3\n");
  } else if (n == 3) {
    printf("1 6\n");
  } else {
    for (auto i : ans) printf("%lld ", i);
    printf("\n");
  }
  return 0;
}
