#include <cstdio>
#include <cmath>
#include <vector>
#define pb push_back
using namespace std;
int main(void)
{
	int n,b;
	vector<int> vec;
	while(scanf("%d",&n)!=EOF)
	{
		b=n;
		vec.clear();
		while(b>0)
		{
			vec.pb(b%2);
			b/=2;
		}
		int size = vec.size();
		for(int i=0;i<size;i++)
		{
			if(vec[i])
			{
				printf("%d",(int)(pow(2,i)));
				(i==size-1) ? printf("\n") : printf(" ");
			}
			else
			{
				if(i==size-1)printf("\n");
			}
		}
	}
	return 0;
}