def count_children(r_count, l_count)
  rl_count = r_count + l_count
  children =
    if rl_count.even?
      [rl_count / 2, rl_count / 2]
    elsif r_count.even?
      [rl_count / 2, rl_count / 2 + 1]
    else
      [rl_count / 2 + 1, rl_count / 2]
    end

  ([0] * (r_count - 1)) + children + ([0] * (l_count - 1))
end

line = gets.chomp
r_count = 0
l_count = 0
ans = []

line.each_char do |char|
  next l_count += 1 if char == "L"
  next r_count += 1 if l_count == 0

  ans += count_children(r_count, l_count)
  r_count = 1
  l_count = 0
end
ans += count_children(r_count, l_count)

puts ans.join(" ")
