#include<bits/stdc++.h>
using namespace std;
long long int a[26],n,m,k,l;
int main(){
	n=1;
	m=1;
	while(n<8000000){
	
		n*=2;
		a[m]=n;
		m++;
		
		
	}
	cin>>k;
	if(k%2==1){
		cout<<-1;
		return 0;
	}
	while(k>0){
		l=23;
		while(a[l]>k){
			l--;
		}
		cout<<a[l]<<' ';
		k-=a[l];
	}
}
/**************************************************************
	Problem: 2397
	User: zhengzihao
	Language: C++
	Result: Accepted
	Time:69 ms
	Memory:2072 kb
****************************************************************/