#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <vector>

using namespace std;



int main(){
	vector<int> weight;
	for(int i = 0; i < 10; i++){
		weight.push_back(pow((float)2, i));
	}

	int w;

	while(cin >> w){
		int use[10] = {0};
		for(int i = 9; i >= 0; i--){
			if(w >= weight[i]){
				w -= weight[i];
				use[i] = 1;
			}
		}

		bool f = true;
		for(int i = 0; i < 10; i++){
			if(use[i]){
				if(!f){
					cout << ' ';
				}
				cout << weight[i];
				f = false;
			}
		}
		cout << endl;
	}

	return 0;
}