#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9);
int n;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  vector<int> prime;
  prime.assign(n + 1, 1);
  for (int i = 2; i <= n / 2; i++) {
    for (int j = i + i; j <= n; j += i) prime[j] = i;
  }
  sort(prime.begin(), prime.end());
  for (int i = 2; i <= n; i++) cout << prime[i] << ' ';
  return 0;
}
