#include<iostream>
#include<queue>
#define N 1 << 9
using namespace std;

int main(){
    int n;
    queue<int> qu;
    while(cin >>n){
        for(int i = 1; i <= N; i = i << 1){
            if((n & i) != 0){
                qu.push(i);
            }
        }
        while(qu.empty() != 1){
            cout <<qu.front();
            if(qu.size() != 1){
                cout <<" ";
            }
            qu.pop();
        }
        cout <<endl;
    }
    return 0;

}