import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
class Main{
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
BigInteger a=in.nextBigInteger();
System.out.print(a+” “);
while(a.compareTo(BigInteger.valueOf(1))==1) {
a=a.divide(BigInteger.valueOf(2));
System.out.print(a+” “);
}
}
}