#include <iostream>
#include <math.h>
using namespace std;

int main() {
  int x10=0;
  int x2=0;

  while(cin >> x10) {
    for(int i=0;i<10;i++) {
      x2 = x10 % (int)(pow(2,i+1));
      if(x2 != 0){
        cout << (int)pow(2,i) << " ";
      x10 -= x2;
      }
    }
    cout << endl;
  }
}