S = gets.chomp.split("")

children = Array.new(S.length).fill(1, S.length){|i| [i]}
children.shift

hoge = 0
while hoge < 100 do
  for i in 0...(S.length-1) do
    if [S[i], S[i+1]] == ["R", "L"] then
      children[i], children[i+1] = children[i+1], children[i]
      j = i - 1
      while j >= 0 && S[j] == "R" do
        children[j+1] = children[j+1] + children[j]
        children[j] = []
        j -= 1
      end
      j = i + 2
      while j <= S.length-1 && S[j] == "L" do
        children[j-1] = children[j-1] + children[j]
        children[j] = []
        j += 1
      end
    end
  end
  hoge += 1
end

ans = []
children.map{|child|
  ans.push(child.length)
}

puts ans*" "
