s = gets.chomp
answer = Array.new(s.size, 0)

0.upto(s.size - 1) do |i|
  if (s[i] == "R" && s[i + 1] == "L") || (s[i] == "L" && s[i - 1] == "R")
    answer[i] += 1
  else 
    now_direction = s[i]
    next_direction = s[i] == "R" ? s[i + 1] : s[i - 1]
    count = 0
    while now_direction == next_direction
      count += 1
      now_direction = next_direction
      next_direction = (now_direction == "R" ? s[i + count + 1] : s[i - count - 1])
    end
    if now_direction == "R"
      count.even? ? answer[i + count] += 1 : answer[i + count + 1] += 1
    else
      count.even? ? answer[i - count] += 1 : answer[i - count - 1] += 1
    end
  end
end

puts answer.join(" ")
