#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 5;
int D[N];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++)
    for (int j = i + i; j <= n; j += i) D[j] = i;
  sort(D + 1, D + 1 + n);
  for (int i = 2, mx = 1; i <= n; mx = max(mx, D[++i])) cout << mx << ' ';
  return 0;
}
