#include <bits/stdc++.h>
using namespace std;
const int mod = 998244353;
const double eps = 1e-10;
const double pi = acos(-1.0);
const int maxn = 5e5 + 10;
const long long inf = 0x3f3f3f3f;
const int dir[4][2] = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}};
int a[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 2; i <= n; i++)
    if (!a[i])
      for (int j = i; j <= n; j += i)
        if (!a[j]) a[j] = j / i;
  a[1] = 1;
  vector<int> v;
  for (int i = 1; i <= n; i++)
    if (a[i]) v.push_back(a[i]);
  sort((v).begin(), (v).end());
  for (int i = 1; i < n; i++) cout << v[i] << ' ';
  return 0;
}
