#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  while (cin >> n) {
    vector<int> v;
    for (int i = 0; i < 10; i++) {
      if (1 << i & n) {
        v.push_back(1 << i);
      }
    }
    cout << v[0];
    for (size_t i = 1; i < v.size(); i++) {
      cout << " " << v[i];
    }
    cout << "\n";
  }
}
