S=gets.chomp

arr = Array.new(S.length,0)

i = 0
loop do
  idx = S.index('L',i)
  count = idx - i
  arr[idx] += count/2
  arr[idx-1] += count/2+(count%2)
  i = S.index('R',idx) || S.length
  count = i-idx
  arr[idx-1] += count/2
  arr[idx] += count/2+(count%2)
  break if i == S.length
end

puts arr.join(' ')

