#include<iostream>
using namespace std;
#define int long long
int a[1000005];
signed main() {
int n;
cin>>n;
if(n%2==1){
return cout<<"-1",0;
}
else{
a[1]=2;
for(int i=2;i<=30;i++){
a[i]=a[i-1]*2;
}
for(int i=30;i>=1;i--){
if(a[i]<=n){
n-=a[i];
cout<<a[i]<<" ";
}
if(n==0){
return 0;
}
}
}
return 0;
}
07-01
961
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
08-06
2768
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
09-26
414
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)