#include <bits/stdc++.h>
using namespace std;
set<long long> rez;
long long doDiv(int d, int n) {
  int x = n / d;
  if (d == 1) return (long long)n * (n + 1) / 2;
  return (long long)n * (x - 1) / 2 + x;
}
int main() {
  FILE *fin = stdin;
  FILE *fout = stdout;
  int n;
  fscanf(fin, "%d", &n);
  int d = 1;
  while (d * d <= n) {
    if (n % d == 0) {
      rez.insert(doDiv(d, n));
      rez.insert(doDiv(n / d, n));
    }
    ++d;
  }
  for (auto it : rez) fprintf(fout, "%lld ", it);
  return 0;
}
