line=gets.chomp
a=[]
b=1
c=[]
for l in 0..line.length-1
  c[l]=0
end
for i in 0..line.length-1
  if line[i]==line[i+1] then
    b=b+1
  else
    a.push([line[i],b])
    b=1
  end
end
d=0
for j in a
  if j[0]=="R" then
    c[d+j[1]]=c[d+j[1]]+(j[1].to_f/2).floor
    c[d+j[1]-1]=c[d+j[1]-1]+(j[1].to_f/2).ceil
    d=d+j[1]
  elsif j[0]=="L" then
    c[d]=c[d]+(j[1].to_f/2).ceil
    c[d-1]=c[d-1]+(j[1].to_f/2).floor
    d=d+j[1]
  end
end
puts c.join(" ")