import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
BigInteger a = new BigInteger(n);
BigInteger b = new BigInteger(“2”);
while(a.longValue() > 0){
System.out.print(a+” “);
a = a.divide(b);
}
}
}