#include <bits/stdc++.h>
using namespace std;
int cnt;
long long n, sum[80011], x;
bool cmp(long long aa, long long bb) { return (aa < bb); }
int main() {
  scanf("%I64d", &n);
  for (int i = 1; i <= 40000; i++)
    if ((i * i) <= n) {
      if ((n % i) == 0) {
        x = n / i;
        cnt++;
        sum[cnt] = 1ll * x * (x - 1) / 2 * i + 1ll * x;
        if (x != i) {
          cnt++;
          sum[cnt] = 1ll * (i - 1) * i / 2 * x + 1ll * i;
        }
      }
    } else
      break;
  sort(sum + 1, sum + 1 + cnt, cmp);
  for (int i = 1; i <= cnt; i++) printf("%I64d ", sum[i]);
}
