import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[]) throws Exception{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
long n = Long.parseLong(bf.readLine());//10^18要使用long
while( n > 0){
out.write(n+" ");
n >>=1;
}
out.flush();
out.close();
}
}