s = gets.chomp
rls = s.scan(/R+L+/)
ans = []
rls.each do |rl|
  r_size = rl.index("L")
  l_size = rl.size - r_size
  r_children = l_size / 2 + (r_size / 2.0).ceil
  l_children = r_size / 2 + (l_size / 2.0).ceil
  children = [0] * (r_size - 1) + [r_children] + [l_children] + [0] * (l_size - 1)
  ans += children
end
puts ans.join(" ")
