#include <bits/stdc++.h>
using namespace std;
int a[500005];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int num = i + 1;
    a[i] = 1;
    for (int j = 2; j <= sqrt(num); j++)
      if (num % j == 0) {
        a[i] = num / j;
        break;
      }
  }
  sort(a, a + n);
  for (int i = 1; i < n; i++) cout << a[i] << " ";
  return 0;
}
