S=gets.chomp

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

i = 0
s = S
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)
  break if i.nil?
end

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

puts arr.reverse.join(' ')

