#include <iostream>
using namespace std;

int main(){
	unsigned o;

	while ( cin >> o ){
		for ( int i = 0; i < 10; ++i ){
			if ( o & 1 << i ){
				cout << ( 1 << i );
				if ( !( i == 9 ) ){
					cout << " ";
				}
			}
		}
		cout << endl;
	}
}