#include<iostream>
using namespace std;

int main(){
  int n;
  while(cin>>n){
    for(int i=0;i<10 && (1<<i) <= n;i++){
      if(( (1<<i) & n )>>i == 0x1)
	cout<<(1<<i)<<" ";
    }
    cout<<endl;
  }
  return 0;
}