#include <iostream>
using namespace std;

int main(){
  int n;
  while(cin >> n){
    int a = 1;
    bool first = true;
    while(true){
      if(n % 2  == 1){
	if(first) first = false;
	else cout << " ";
	cout << a;
      }
      a *= 2;
      n /= 2;
      if(n == 0) break;
    }
    cout << endl;
  }

  return 0;
}
