#include <stdio.h>
int main(){
int n,temp;
while(scanf("%d",&n)!=EOF){
temp=1;
while(temp<=n)temp*=2;
temp/=2;
printf("%d",temp);
n-=temp;
while(n>0){
while(temp>n)temp/=2;
n-=temp;
printf(" %d",temp);
}
printf("\n");
}
}