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

int main(){
  int w;
  while(cin >> w){
    int a = 1; 

    while(w > 0){
      if(w == 1){
        cout << a;
      } else if(w & 1){
        cout << a << " ";
      }
      w /= 2; a *= 2;
    }
    cout << endl;
  }
}
  
  
