s = gets.chomp.split("")
rights = []
lefts = []
s.each_with_index do |char, index|
  if char == "R"
    rights.unshift(index)
  else
    lefts.push(index)
  end
end

answers = Array.new(s.size, 0)

s.each_with_index do |char, index|
  if char == "R"
    destination = lefts.bsearch { |item| item > index }
    if (destination - index).even?
      answers[destination] += 1
    else
      answers[destination - 1] += 1
    end
  else
    destination = rights.bsearch { |item| item < index }
    if (index - destination).even?
      answers[destination] += 1
    else
      answers[destination + 1] += 1
    end
  end
end

puts answers.join(" ")
