while weight = gets
  weight = weight.chomp.to_i
  ans = Array.new
  9.step(0, -1) do |i|
    if weight >= 2**i
      ans.push(2**i)
      weight = weight - 2**i
    end
  end
puts ans.sort.join(" ")
end