#include <iostream>
int main(){
std::cout << "Enter the number: ";
int number;
std::cin >> number;
int buffer = number;
if(number <= 0) return 1;
double multi_factor = 1;
std::cout << std::endl;
while((buffer = number * multi_factor) >= 1){
std::cout << buffer << " ";
multi_factor /= 2;
if(buffer % 2 != 0) break;
}
std::cin.get();
std::cin.get();
return 0;
}