#include <iostream>
using namespace std;

int main() {
	
	int w,n,f;
	
	while(cin>>w){
		n=1;
		f=0;
		
		for(;n<=512;n<<=1){
			if(w&n){
				cout<<(f?" ":"")<<n;
				f=1;
			}
		}
		cout<<endl;
		
	}
	return 0;
}