S = gets.chomp
children = Array.new(S.length, 1)
max = [S.scan(/R+/i).max.length, S.scan(/L+/i).max.length].max
moving = Array.new(S.length, 0)
(max % 2 == 0 ? max : max - 1).times do |_|
  moving.fill(0)
  S.split("").each.with_index do |v, i|
    tmp = children[i]
    if v == "R"
      moving[i + 1] = moving[i + 1] + tmp
    else
      moving[i - 1] = moving[i - 1] + tmp
    end
  end
  children = *moving
end
puts children.join(" ")
