#include<bits/stdc++.h>
using namespace std;
int w,ans[10],wei[10],tot=0;
signed main(void){
		ios::sync_with_stdio(false);
		for(int i=0;i<10;i++)
			wei[i]=1<<i;
		while(cin>>w){
			for(int i=9;i>=0;i--)
				if(w>=wei[i]){
					ans[++tot]=wei[i];
					w-=wei[i];	
				}
			while(tot>1)
				cout<<ans[tot--]<<" ";
			cout<<ans[tot--]<<endl;
		}
}