#include <bits/stdc++.h>
using namespace std;
set<long long> Ans;
int main() {
  long long N;
  scanf("%lld", &N);
  for (long long i = 1; i * i <= N; i++)
    if (N % i == 0)
      Ans.insert((2ll + N - i) * (N / i) / 2),
          Ans.insert((2ll + N - N / i) * (N / (N / i)) / 2);
  for (set<long long>::iterator it = Ans.begin(); it != Ans.end(); ++it)
    printf("%lld ", *it);
}
