#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout << setprecision(10) << fixed;
  long long int n;
  cin >> n;
  long long int a[n + 1];
  for (long long int i = 0; i <= n; i++) a[i] = 1;
  for (long long int i = 2; i < n; i++)
    for (long long int j = i + i; j <= n; j += i) a[j] = i;
  sort(a, a + n + 1);
  for (long long int i = 2; i <= n; i++) cout << a[i] << " ";
  cout << endl;
  return 0;
}
