#include <iostream>
#include <vector>
using namespace std;

const int N = 10;

int main()
{
	int w[N];
	w[0] = 1;
	for(int i=1; i<N; i++){
		w[i] = w[i-1]*2;
	}
	int n;
	while(cin>>n){
		vector<int> all;
		for(int i=N-1; i>=0; i--){
			if(w[i]<=n){
				all.push_back(w[i]);
				n -= w[i];
			}
			if(n == 0) break;
		}
		for(int i=all.size()-1; i>=0; i--){
			if(i!=all.size()-1) cout<<" ";
			cout<<all[i];
		}
		cout<<endl;
	}
	return 0;
}