S=gets.chomp

arr = [0]*S.length

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

puts arr.join(' ')

