#include <bits/stdc++.h>
using namespace std;
const int MAXN = 500 * 1000 + 10;
int n, arr[MAXN];
int main() {
  cin >> n;
  arr[1] = 1;
  for (int i = 1; i <= n; i++) {
    for (int j = 2 * i; j <= n; j += i) {
      arr[j] = i;
    }
  }
  sort(arr, arr + n + 1);
  for (int i = 2; i <= n; i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
  return 0;
}
