S=gets.chomp
l=S.length

a = [0]*l

i = 0
while i != l
  j = S.index(?L,i)
  c = j-i
  a[j] += c/2
  a[j-1] += c/2+(c%2)
  i = S.index(?R,j) || l
  c = i-j
  a[j-1] += c/2
  a[j] += c/2+(c%2)
end

puts a*' '
