s = gets.chomp

#LまたはR
pre = ""

result = []

ss = s.split("LR")
last = ss.size - 1
ss.each_with_index do |si,i|
  if i == 0 && i == last
    si = si
  elsif i == 0 && i != last
    si = si + "L"
  elsif i == last
    si = "R" + si
  else
    si = "R" + si + "L"
  end

  size = si.size
  flug = 0
  si.chars.each_with_index do |c,i|
    if i == 0
      next
    end

    if c == "L" && flug < 2
      flug += 1
      result << (size + (i % 2)) / 2
    else
      result << 0
    end
  end
  if flug == 1
    result << size.+(1) / 2
  else
    result << 0
  end
end

puts result*" "



