#include<bits/stdc++.h> using namespace std; int main (){//改了114514次了(悲) int n; cin>>n; while(n>0){ cout<<n<<" "; n=n/2; } return 0; }