#include<bits/stdc++.h> using namespace std; int main(){ int n; scanf("%d",&n); if(n%2==1)printf("-1"); else{ int t=1; while(t<=n)t*=2; t/=2; while(n!=0){ if(t<=n){ printf("%d ",t); n-=t; }else continue; t/=2; } } return 0; }