#include <bits/stdc++.h>
using namespace std;
long long dx[] = {1, -1, 0, 0};
long long dy[] = {0, 0, 1, -1};
const long long inf = 1e18 + 5;
const long long sz = 1e5 + 5, mod = 1e9 + 7;
long long t, n, m, k, p;
long long power(long long a, long long b) {
  long long ans = 1;
  while (b > 0) {
    if (b & 1) {
      ans = (ans * a) % mod;
    }
    a = (a * a) % mod;
    b >>= 1;
  }
  return ans;
}
long long Inv(long long a) { return power(a, mod - 2); }
int spf[5000005];
void preprocess() {
  for (int i = 1; i < 5000005; i++) spf[i] = i;
  for (long long i = 2; i * i < 5000005; i++) {
    if (spf[i] == i) {
      for (long long j = i * i; j < 5000005; j += i) {
        if (spf[j] == j) spf[j] = i;
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  t = 1;
  preprocess();
  while (t--) {
    cin >> n;
    vector<long long> v;
    for (int i = 2; i <= n; i++) {
      v.push_back(i / spf[i]);
    }
    sort(v.begin(), v.end());
    for (int i = 0; i < v.size(); i++) cout << v[i] << " ";
  }
  return 0;
}
