line=gets.chomp
a=[]
for i in 0..line.length-1
  a[i]=i
end
10*5.times do
  for j in 0..line.length-1
    if line[a[j]]=="R" then
      a[j]=a[j]+1
    elsif line[a[j]]=="L" then
      a[j]=a[j]-1
    end
  end
end
b=[]
for k in 0..line.length-1
  b[k]=a.count(k)
end
puts b.join(" ")