#include <bits/stdc++.h>
using namespace std;
long long spf[500005];
long long ans[500005];
void sieve() {
  spf[1] = 1;
  for (long long i = 2; i < 500005; i++) spf[i] = i;
  for (int i = 4; i < 500005; i += 2) spf[i] = 2;
  for (long long i = 3; i * i < 500005; i++) {
    if (spf[i] == i) {
      for (long long j = i * i; j < 500005; j += i)
        if (spf[j] == j) spf[j] = i;
    }
  }
  for (long long i = 1; i < 500005; ++i) ans[i] = max(1LL, i / spf[i]);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  sieve();
  long long N;
  cin >> N;
  vector<long long> res;
  for (long long i = 2; i <= N; ++i) res.push_back(ans[i]);
  sort(res.begin(), res.end());
  for (long long i = 0; i < res.size(); ++i) cout << res[i] << " ";
  cout << endl;
}
