#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
vector<int> Eratosthenes(long long n) {
  vector<int> res(n + 1, 1);
  for (long long i = 2; i * i <= n; i++)
    if (res[i] == 1) {
      for (long long j = 2; i * j <= n; j++) chmax(res[i * j], (int)max(i, j));
    }
  return res;
}
int main() {
  int n;
  scanf("%d", &n);
  vector<int> v = Eratosthenes(n);
  sort((v).begin(), (v).end());
  for (long long i = 2; i < n + 1; i++) {
    printf("%d%c", v[i], i == n ? '\n' : ' ');
  }
}
