var weights = [];
for (var i = 0; i < 10; i++) {
	weights[i] = 1 << i;
}

var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = input.trim().split('\n');

var line;
while (line = lines.shift()) {
	var w = +line;
	var flags = w.toString(2).split('');

	var result = [];
	for (var i = 0; i < flags.length; i++) {
		if (+flags[i])
			result.push(weights[i]);
	}
	console.log(result.join(' '));
}