#include<iostream> using namespace std; int main() { long long n; cin>>n; for(long long i=n;i>0;i/=2) { cout<<i<<" "; } return 0; }