#include <bits/stdc++.h>
using namespace std;
const long long N = 500000;
long long size;
vector<long long> p;
void altGcd(long long upper) {
  size = upper + 1;
  p = vector<long long>(size, -1);
  for (long long i = 2; i < size; i++) {
    for (long long j = 2 * i; j < size; j += i) p[j] = i;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, i;
  altGcd(N);
  cin >> n;
  sort(p.begin() + 1, p.begin() + n + 1);
  for (i = 2; i <= n; i++) {
    if (i > 2) cout << " ";
    cout << (p[i] == -1 ? 1 : p[i]);
  }
  cout << "\n";
  return 0;
}
