#include <bits/stdc++.h>
using namespace std;
int n, erat[510000];
vector<int> v;
int main() {
  scanf("%d", &n);
  for (long long i = 2; i <= n; i++) {
    if (erat[i] == 0) {
      for (long long j = i * i; j <= n; j += i)
        if (erat[j] == 0) erat[j] = i;
      erat[i] = i;
    }
  }
  for (int i = 2; i <= n; i++) v.push_back(i / erat[i]);
  sort(v.begin(), v.end());
  for (int i = 0; i < v.size(); i++) printf("%d ", v[i]);
  printf("\n");
  return 0;
}
