//AOJ 0031

#include<stdio.h>
#include<iostream>
#include<vector>

using namespace std;

int main(){

	int data[10]={1,2,4,8,16,32,64,128,256,512};



	vector<int> input;

	int num;

	while(cin>>num){

		for(int j=0;j<10;j++){

			if(num%2==1){
				printf("%d ",data[j]);
			}
			num/=2;
		}

		printf("\n");
	}

	return 0;
}