#include<stdio.h> int main() { long long x; scanf("%lld",&x); while(x>0) { printf("%lld ",x); x=x/2; } return 0; }