#include <bits/stdc++.h>
using namespace std;
int criba[500005];
void llenar() {
  criba[0] = 1;
  for (int i = 1; i < 500005; ++i) criba[i] = i;
  for (long long i = 2; i < 500005; ++i)
    if (i == criba[i])
      for (long long j = i * i; j < 500005; j += i)
        if (i < criba[j]) criba[j] = i;
}
int main() {
  long long n;
  llenar();
  cin >> n;
  map<long long, long long> reps;
  for (long long i = 2; i <= n; ++i) reps[i / criba[i]]++;
  for (auto c : reps)
    for (int i = 0; i < c.second; ++i) cout << c.first << ' ';
  cout << endl;
  return 0;
}
