#include <bits/stdc++.h>

#define stirng string
#define vvi vector<vector<int>>
#define vi vector<int>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

const int inf = 1e9 + 7;

int main() {
  int a;
  int i = 0;
  while (cin >> a) {
    while (1) {
      a -= pow(2, i);
      if (a == 0) {
        for (int j = 0; j <= i; j++) {
          cout << pow(2, j) << ' ';
        }
        cout << endl;
        i = 0;
        break;
      } else {
        i++;
      }
    }
  }
  return 0;
}

