S = gets.chomp.chars
answer = Array.new(S.length, 0)
count = 0

S.each.with_index do |c, i|
  if c == "R"
    count += 1
  else
    answer[i] += count / 2
    answer[i - 1] += (count + 1) / 2
    count = 0
  end
end

answer.reverse!
count = 0

S.reverse.each.with_index do |c, i|
  if c == "L"
    count += 1
  else
    answer[i] += count / 2
    answer[i - 1] += (count + 1) / 2
    count = 0
  end
end

puts answer.reverse.join(" ")
