#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> info(n + 1);
  iota(info.begin(), info.end(), 0);
  info[0] = 1;
  for (int i = 2; i <= n; i++) {
    if (info[i] != i) continue;
    for (int j = i + i; j <= n; j += i) {
      info[j] = min(info[j], i);
    }
  }
  vector<int> order(n + 1);
  iota(order.begin(), order.end(), 0);
  sort(order.begin(), order.end(),
       [&](int i, int j) { return i / info[i] < j / info[j]; });
  int pre = 1;
  for (int i = 2; i <= n; i++) {
    pre = max(pre, order[i] / info[order[i]]);
    cout << pre << ' ';
  }
  cout << endl;
}
