s=gets.chomp
ary=s.scan(/R+L+/)
res=[]
ary.each do |str|
  rnum=str[/R+/].size
  lnum=str.size-rnum
  n=rnum/2 + lnum/2
  if rnum.size.odd?
    rres=n+1
    # 0000n+1n+10000
  else
    rres=n
  end
  if lnum.size.odd?
    lres=n+1
    # 0000n+1n+10000
  else
    lres=n
  end
  
  (2..rnum).each{|i| res<<0}
  res << rres
  res << lres
  (2..lnum).each{|i| res<<0}
end
puts res.join(' ')