#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> ans(n + 1, 0);
  ans[0] = INT_MAX;
  ans[1] = 0;
  for (int i = 2; i <= n; i++) {
    if (ans[i]) {
      continue;
    }
    for (int j = i; j <= n; j += i) {
      if (ans[j]) {
        continue;
      }
      ans[j] = j / i;
    }
  }
  sort(ans.begin(), ans.end());
  for (int i = 1; i < n; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
}
