ss = gets.chomp.split('').map{|c| c=='R' ? 1 : -1}

childs = Array.new(ss.length, 0)

len = ss.size

len.times do |i|
  len.times{|t|
    if ss[i] != ss[i+ss[i]]
      i += ss[i] if (t % 2 == 1)
      break
    end
    i += ss[i]
  }
  childs[i] += 1
end

puts childs.join(' ')

