#include <iostream>

using namespace std;

void solve()
{
	int weight[10];
	int c = 1;
	for(int i = 0; i < 10; ++i)
	{
		weight[i] = c;
		c *= 2;
	}
	int w;
	while(cin >> w)
	{
		bool useWeight[10] = {false};
		int lastPoint = 0;
		for(int i = 9; i >= 0; --i)
		{
			if(w >= weight[i])
			{
				w -= weight[i];
				useWeight[i] = true;
				if(lastPoint < i)
				{
					lastPoint = i;
				}
			}
		}
		for(int i = 0; i < lastPoint; ++i)
		{
			if(useWeight[i])
			{
				cout << weight[i];
				cout << " ";
			}
		}
		cout << weight[lastPoint] << endl;
	}
}

int main()
{
	solve();
	return(0);
}