#include <iostream>
using namespace std;

int main(){
    int n;
    while(cin >> n){
        int p = 1;
        bool f = false;
        while(n){
            if(n & 1){ if(f) cout << " "; cout << p; f = true; }
            p *= 2; n >>= 1;
        }
        cout << endl;
    }
    return 0;
}