S = gets.chomp

lmt = S.length
lmt += 1 if S.length.odd?

clds = Array.new(S.length, 1)
(1..lmt).each do |n|
  tmp = Array.new(S.length, 0)
  S.length.times do |i|
    next if clds[i] == 0

    if S[i] == 'R'
      tmp[i+1] += clds[i]
    elsif S[i] == 'L'
      tmp[i-1] += clds[i]
    end
  end
  clds = tmp
end
puts clds.join(' ')