#include<bits/stdc++.h>
using namespace std;
int main(){
int n,i,d=2,a[100],s=0,w=1;
cin>>n;
while(d*2<=n) d*=2;
// cout<<d<<endl;
while(n>0){
if(n>=d){
a[s++]=d;
n-=d;
}
d/=2;
if(n%2==1){
w=0;
}
}
if(!w){
cout<<-1;
}else{
for(i=0;i<s;i++){
cout<<a[i]<<" ";
}
}
return 0;
}
/**************************************************************
Problem: 2397
User: zzz
Language: C++
Result: Accepted
Time:72 ms
Memory:2072 kb
****************************************************************/