#include <bits/stdc++.h>
using namespace std;
bool vis[500005];
int main() {
  int n;
  cin >> n;
  memset(vis, 0, sizeof(vis));
  vector<int> ans;
  for (int i = n / 2; i > 1; i--) {
    for (int j = i + i; j <= n; j += i) {
      if (!vis[j]) {
        ans.push_back(i);
        vis[j] = true;
      }
    }
  }
  int ones = n - 1 - ans.size();
  for (int i = 0; i < ones; i++) {
    printf("1 ");
  }
  for (int i = ans.size() - 1; i >= 0; i--) {
    printf("%d ", ans[i]);
  }
}
