#include <bits/stdc++.h>
using namespace std;
int n, mxy[1002019];
void get_mxy() {
  mxy[1] = 1;
  for (int i = 2; i <= n; i++) {
    if (mxy[i]) continue;
    for (int j = i; j <= n; j += i)
      if (!mxy[j]) mxy[j] = j / i;
  }
}
int main() {
  cin >> n;
  get_mxy();
  sort(mxy + 1, mxy + n + 1);
  for (int i = 2; i <= n; i++) printf("%d ", mxy[i]);
  return 0;
}
