#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using P = pair<int, int>;
using V = vector<int>;
constexpr int inf = 1 << 31 - 1;
constexpr int none = 1 << 31;
constexpr lli infL = 1ll << 63 - 1;
constexpr lli noneL = 1ll << 63;
void solve(int n, int fac) {
  if (n == 3) {
    cout << fac << "\n" << fac << "\n" << 3 * fac << "\n";
    return;
  }
  if (n == 1) {
    cout << fac << "\n";
    return;
  }
  if (n == 0) {
    return;
  }
  for (int i = 0; i < n - n / 2; i++) {
    cout << fac << "\n";
  }
  solve(n / 2, 2 * fac);
}
signed main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  ;
  solve(n, 1);
}
