#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  bool p[n + 1];
  for (int i = 1; i <= n; ++i) p[i] = true;
  int lf[n + 1];
  for (int i = 1; i <= n; ++i) lf[i] = 1;
  for (int i = 2; i <= n; ++i) {
    if (p[i] && (long long)i * i <= n) {
      for (int j = i * i; j <= n; j += i) {
        p[j] = false;
        if (lf[j] == 1) lf[j] = j / i;
      }
    }
  }
  lf[0] = 0;
  sort(lf, lf + n + 1);
  for (int i = 2; i <= n; ++i) cout << lf[i] << " ";
  cout << "\n";
}
