tr = gets.chomp
array = [0] * str.length
i = 0
while index = str.index(/L(R|$)/, i)
  sindex = str.index('RL', i)
  r = sindex - i + 1
  l = index - sindex
  array[sindex] = r / 2 + l / 2
  array[sindex] += 1 if r.odd?
  array[sindex + 1] = r / 2 + l / 2
  array[sindex + 1] += 1 if l.odd?
  i = index + 1
end

puts array.join(' ')