#include <bits/stdc++.h>
using namespace std;

int main(){
	int n;
	while(cin >> n){
		bool first = true;
		for(int i = 0; i <= 9; i++){
			if((n >> i) & 1){
				if(!first){
					cout << " ";
				}
				cout << (1<<i);
				first = false;
			}
		}
		cout << endl;
	}

	return 0;
}

