io = STDIN
def cv(ar)    #ar: [r,r,l]
  size=ar.size
  r=ar.count("R")
  l=size-r
  if size.even?
    [0]*(r-1)+[ar.size/2,ar.size/2]+[0]*(l-1)
  else
    min=[l,r].min
    [0]*(r-1) +
    if min.odd? && r>l ||
       min.even? && r<l
      [size/2,size-size/2]
    else
      [size-size/2,size/2]
    end +
    [0]*(l-1)
  end
end
str=io.gets.chomp
chnk=str.split(//).chunk_while do |a,b|
  a!="L" || b!='R'
end
puts chnk.map{|ar|cv(ar)}.flatten.join(" ")
