#include <bits/stdc++.h>
using namespace std;
template <typename TYPE>
void readint(TYPE &x) {
  x = 0;
  int f = 1;
  char c;
  for (c = getchar(); !isdigit(c); c = getchar())
    if (c == '-') f = -1;
  for (; isdigit(c); c = getchar()) x = x * 10 + c - '0';
  x *= f;
}
int qwe, qwr;
const long long MOD = 998244353LL, MAX = 5e5 + 5;
const int INF = 2e9;
int n;
int d[MAX];
void CPU() {
  d[0] = INF;
  d[1] = 1;
  for (int i = 2; i <= n; i++) {
    if (d[i]) continue;
    for (int j = i; j <= n; j += i) {
      if (d[j]) continue;
      d[j] = j / i;
    }
  }
}
void solve() {
  cin >> n;
  CPU();
  sort(d, d + n + 1);
  for (long long i = 1; i < n; i++) cout << d[i] << ' ';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
  return 0;
}
