#include <bits/stdc++.h>
using namespace std;
const long long MAX = 1e6 + 5;
long long sito[MAX];
vector<long long> ans;
long long func(long long i) {
  for (long long j = 2; j * j <= i; j++)
    if (i % j == 0) return i / j;
  return 1;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  for (long long i = 2; i <= n; i++) ans.push_back(func(i));
  sort(ans.begin(), ans.end());
  for (auto it : ans) cout << it << " ";
  return 0;
}
