#include<iostream>
#include<vector>
int main(){
	int w;
	int weight[10]={1,2,4,8,16,32,64,128,256,512};
	std::vector<bool> vec(10,0);
	while(1){
		int a=0;
		std::cin>>w;
		if(std::cin.eof())break;
		//if(w==0)break;
		while(w>0){
			vec[a]=w%2;
			w/=2;
			a++;
		}
		for(int i=0;i<10;i++){
			if(vec[i]!=0)std::cout<<weight[i]<<" ";
		}
		std::cout<<std::endl;
	}
	return 0;
}