#include <iostream>

using namespace std;
 
int main(){
  int n;
  while(cin >> n){
    int i = 1;
    bool f = true;
    while(i != 1024){
      if((n&i) != 0){
	if(f) f = false;
	else cout << " ";
	cout << i;
      }
      i <<= 1;
    }
    cout << endl;
  }
  return 0;
}