#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, l = 1;
  cin >> n;
  l = n;
  m = n;
  while (n > 0) {
    if (m % n == 0 && l % n == 0) {
      cout << n << " ";
      l = n;
    }
    n--;
  }
  return 0;
}
