#include <bits/stdc++.h>
using namespace std;
int n, k, len;
long long ans, a[100010];
int main() {
  scanf("%d", &n);
  for (int i = 1; i * i <= n; i++) {
    if (n % i != 0) continue;
    k = n / i;
    ans = (1LL * k * (k - 1) >> 1) * i + k;
    a[++len] = ans;
    if (n / i == i) continue;
    k = i;
    ans = (1LL * k * (k - 1) >> 1) * (n / i) + k;
    a[++len] = ans;
  }
  for (int i = 2; i <= len; i += 2) printf("%I64d ", a[i]);
  int t = len;
  if (t % 2 == 0) t -= 1;
  for (int i = t; i > 1; i -= 2) printf("%I64d ", a[i]);
  printf("%I64d\n", a[1]);
  return 0;
}
