#include<iostream> using namespace std; int main(){ long long n; cin >> n; while(n){ printf("%ld ", n); n = n >> 1; } return 0; }