#include <iostream>
#include <algorithm>
using namespace std;
#define int long long
signed main(){
int n;
cin >> n;
if (n % 2 != 0){cout << -1;return 0;};
for (int i = 31;i >= 0;i--) {
if (n >> i & 1) cout << (1 << i) << ' ';
}
return 0;
}