s                  = gets.chomp.split(//)
n                  = s.size
ans                = Array.new(n, 0)
count              = 0
gathering_children = -> {
  s.each_with_index do |c, i| #前から
    if c == "R"
      count += 1
    elsif count != 0
      ans[i]     += count / 2
      ans[i - 1] += (count + 1) / 2
      count      = 0
    end
  end
}
gathering_children.call
s.reverse!.map! { |c| c == "R" ? "L" : "R" } # 後ろから
ans.reverse!
gathering_children.call
puts ans.reverse.join(" ") # 答えをリバースして出力

