#include<stdio.h>
#include<string.h>
int main()
{
    int i,left,tmp;
    int w[10];
    char c;
    while (scanf("%d", &left) != EOF) {
        memset(w,0,sizeof(w));
        for (i=9;i>=0;i--) {
            tmp = 1<<i;
            if (left>=tmp) {
                w[i]=1;
                left-=tmp;
            }
        }
        c = '\0';
        for (i=0;i<10;i++) {
            if (w[i]) {
                printf("%c%d",c,1<<i);
                fprintf(stderr, "%c%d",c,1<<i);
                c = ' ';
            }
        }
        printf("\n");
    }
    return 0;
}