#include <bits/stdc++.h>
using namespace std;
int s[500000 + 5];
int main() {
  int n;
  int tot = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    for (int j = (i << 1); j <= n; j += i) {
      s[j] = i;
    }
  }
  sort(s + 1, s + 1 + n);
  for (int i = 2; i <= n; i++) {
    printf("%d ", s[i]);
  }
}
