rt
#include <bits/stdc++.h>
using namespace std;
int n;
int main()
{
ifstream fin("power.in");
ofstream fout("power.out");
fin >> n;
if (n % 2)
{
fout << -1;
return 0;
}
while (n)
{
int cifang = int(pow(2, int(log2(n))));
fout << cifang << ' ';
n -= cifang;
}
return 0;
}