#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N];
int main() {
  int n;
  cin >> n;
  cout << '1';
  int m = 0;
  for (int i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      a[++m] = i;
      if (i != n / i) a[++m] = n / i;
    }
  }
  sort(a + 1, a + m + 1);
  for (int i = 2; i <= m; i++) {
    long long ans;
    ans = (long long)a[i] + (long long)n * (a[i] - 1) / 2;
    cout << ' ' << ans;
  }
  cout << endl;
}
