#include <iostream>
using namespace std;

int weight[10];
weight[1]=1;
for(int i = 2;i<=9;i++)weight[i]=2*weight[i-1];


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