#include <iostream>
#include <bitset>

using namespace std;


int main(int argc, char const* argv[])
{
	unsigned long weight;
	while( cin >> weight ){
		bitset<16> a( weight );
		for( int i = 0;i < 10;i++ ){
			if( a[i] == 1 ) cout << ( ( i == 0 ) ? "" : " " ) << ( 1 << i );
		}
		cout << endl;
	}
	return 0;
}