import scala.io.Source.stdin
import scala.util.control.Breaks

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

  def main(args : Array[String]) : Unit = {
    val b = new Breaks

    stdin.getLines().map(_.toInt).foreach(weight => {
      val sb = new StringBuilder
      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(" ")
        }
      }
      if (sb.length > 0)
        sb.deleteCharAt(sb.length - 1)

      println(sb.toString())
    })
  }

}