import java.util.Scanner
import scala.util.control.Breaks

/**
  * Created by wintermaples on 2017/06/20.
  */
object Main {

  def main(args : Array[String]) : Unit = {
    val scanner = new Scanner(System.in)
    val b = new Breaks


    while (true) {
      b.breakable {
        val sb = new StringBuilder
        val weight = scanner.nextInt()
        val weightBinary = Integer.toBinaryString(weight)
        for (i <- 0 until weightBinary.length) {
          if (weightBinary.charAt(weightBinary.length - i - 1) == '1') {
            sb.append(String.valueOf( Math.pow(2, i).asInstanceOf[Int] )).append(" ")
          }
        }
        sb.deleteCharAt(sb.length - 1)

        println(sb.toString())

      }
    }
  }

}