#include <iostream> #include <cstdio> using namespace std; typedef long long LL; int main() { LL n; scanf("%lld",&n); while (n) { cout << n << ' '; n /= 2; } return 0; }