#include<iostream> #define N 1e18+10 using namespace std; typedef long long LL; int main() { LL n; cin>>n; while(n > 0) { cout<<n<<" "; n = n/2; } return 0; }