using namespace std;
typedef long long LL;
LL n;
int main() { cin >> n; for (LL i = n; i > 0; i /= 2) cout << i << ” “; return 0; }