#include <bits/stdc++.h>
using namespace std;
const int mxN = 5e5;
int n;
int r[mxN + 1];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 2; i <= n; i++) {
    if (r[i]) continue;
    r[i] = 1;
    for (int j = i + i; j <= n; j += i) {
      int z = j / i;
      if (!r[j]) r[j] = z;
    }
  }
  int mx = 1;
  sort(r + 1, r + 1 + n);
  for (int i = 2; i <= n; i++) {
    cout << r[i] << " ";
  }
  return 0;
}
