#include <iostream>

using namespace std;

int main() {
    int n = 0;

    while (scanf("%d", &n) != EOF) {
        int t = 1;

        for (int i = 0; i < 10; ++i) {
            if ((n & t) == t) {
                if (i != 0) {
                    cout << " ";
                }
                cout << t;
            }

            t *= 2;
        }
        cout << endl;
    }

    return 0;
}