using namespace std;
typedef long long LL;
int main(){ int n; cin > n; while(n){ cout << n <<’ ‘; n /= 2; } return 0; }