#include <stddef.h>
#include <iostream>
#include <vector>
using namespace std;
int main() {
  int g;
  vector<int> v;
  while (cin >> g) {
    v.clear();
    for (int i = 0; i < 10; i++)
      if (g & (1 << i)) v.push_back(1 << i);
    cout << v[0];
    for (size_t i = 1; i < v.size(); i++)
      cout << ' ' << v[i];
    cout << endl;
  }
}