#include <bits/stdc++.h>
using namespace std;
const int N = 5 * 1000 * 100 + 10;
int mx[N];
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) mx[i] = 1;
  for (int i = 2; 1LL * i * i <= n; i++)
    if (mx[i] == 1)
      for (int j = i * i; j <= n; j += i)
        if (mx[j] == 1) mx[j] = j / i;
  sort(mx + 1, mx + n + 1);
  for (int i = 2; i <= n; i++) cout << mx[i] << ' ';
  cout << '\n';
  return 0;
}
