#include <iostream>
using namespace std;
void solve(int n){
	bool exist = false;
	for(int i = 0 ; i < 11; i++){
		if(n & 1 << i){
			if(exist)cout << " ";
			cout << (1 << i);
			exist = true;
		}
	}
	cout << endl;
}
int main(){
	int n;
	while(cin >> n){
		solve(n);
	}

	return 0;
}