#include <iostream>
using namespace std;


int main(){
	int weight[11];
	weight[1] = 1;
	for(int i = 2;i<=10;i++)weight[i]=2*weight[i-1];
	while(true)
	{
	int object;
	cin >> object;
	for(int i =1;i <=10;i++){
		if((object % 2)==1)
			{
			cout << weight[i] ;
			if( i != 10 ) cout << " ";
			}
		object = object /2;
		}
	cout << endl;
	if (cin.eof())break;
	}
	
	return 0;
}