#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e6 + 7;
const int MOD = (int)1e9 + 7;
const long long INF = (long long)1e18 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<int> p(n + 1, 0);
  for (int i = 2; i * i <= n; i++)
    if (p[i] == 0) {
      p[i] = i;
      for (int j = i * i; j <= n; j += i)
        if (!p[j]) p[j] = i;
    }
  for (int i = 1; i <= n; i++)
    if (!p[i]) p[i] = i;
  vector<int> ans;
  for (int i = 1; i <= n; i++) ans.push_back(i / p[i]);
  sort(ans.begin(), ans.end());
  for (int i = 1; i < n; i++) cout << ans[i] << " ";
}
