#include<bits/stdc++.h>
using namespace std;
int main() {
long long x, y, k;
cin >> x;
if (x % 2 == 1) {
cout << "-1";
return 0;
}
y = 1;
k = 2;
while (x != 0) {
if (k * 2 <= x)
k *= 2;
if (k * 2 > x) {
x -= k;
cout << k << " ";
k = 2;
}
y++;
}
return 0;
}