#include <bits/stdc++.h>
using namespace std;
int n;
int p[500009], psi;
int largestfac[500009];
int main() {
  scanf("%d", &n);
  for (int i = 2; i <= n; i++) {
    int sq = sqrt(i);
    bool isp = 1;
    for (int j = 0; j < psi; j++) {
      if (i % p[j] == 0) {
        isp = 0;
        largestfac[i / p[j]]++;
        break;
      }
      if (p[j] > sq) break;
    }
    if (isp) {
      largestfac[1]++;
      p[psi] = i;
      psi++;
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < largestfac[i]; j++) {
      printf("%d ", i);
    }
  }
}
