#include <bits/stdc++.h>
using namespace std;
int main(){
// freopen("power.in","r",stdin);
// freopen("power.out","w",stdout);
int n;
cin>>n;
if(n%2!=0) {
cout<<-1;
}else{
int t=1;
while(t*2<=n) t*=2;
while(n){
if(n/t){
cout<<t<<" ";
n-=t;
}
t>>=1;
}
}
fclose(stdin);
fclose(stdout);
return 0;
}