S = gets.chomp!

split_s = []
count = 1

S.each_char.with_index do |c, i|
  if S[i + 1] != c
    split_s << c * count
    count = 1
  else
    count += 1
  end
end

students = Array.new(S.size, 0)
i = 0
split_s.each do |sequence|
  #binding.irb
  if sequence.include? 'R'
    students[i + sequence.size] += sequence.size / 2
    students[i + sequence.size - 1] +=  sequence.size - sequence.size / 2
  else
    students[i - 1] +=  sequence.size / 2
    students[i] += sequence.size - sequence.size / 2
  end

  i += sequence.size
end

puts students.join(' ')
