#include<bits/stdc++.h>
using namespace std;
int n;
int power(int x){
int i=2;
while(i<=x) i*=2;
return i/2;
}
int main(){
cin>>n;
if(n%2==0){
while(n!=0){
cout<<power(n)<<" ";
n-=power(n);
}
}else{
cout<<"-1";
}
return 0;
}
/**************************************************************
Problem: 2397
User: admin
Language: C++
Result: Accepted
Time:116 ms
Memory:2072 kb
****************************************************************/