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

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

t = ss.length
t += (ss.length  % 2)

t.times{
  new_childs = Array.new(ss.length, 0)
  ss.each_with_index { |s, i|
    new_childs[i+s] += childs[i]
  }
  childs = new_childs
}

puts childs.join(' ')

