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

m_len = 0
tmp_len = 1
(1..ss.length).each do |i|
  if ss[i-1] == ss[i]
    tmp_len += 1
  else
    m_len = tmp_len if m_len < tmp_len
    tmp_len = 1
  end
end

m_len += 1 if m_len % 2 == 1

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

ss.size.times do |i|
  m_len.times{
    i += ss[i]
  }
  childs[i] += 1
end

puts childs.join(' ')

