line = gets.chomp
n = line.length
old_children = nil
children = [1] * n

(1..10**100).each do |time|
  new_children = [0] * n
  n.times do |pos|
    new_pos = line[pos] == "R" ? pos + 1 : pos - 1
    new_children[new_pos] += children[pos]
  end

  if time.even? && new_children == old_children
    puts new_children.join(" ")
    break
  end

  old_children = children
  children = new_children
end