s = gets.chomp.chars

cur = Array.new(s.size, 1)

10.times do |n|
  tmp = Array.new(s.size, 0)
  s.each_with_index do |c, i|
    if c == "R"
      tmp[i + 1] += cur[i]
    else
      tmp[i - 1] += cur[i]
    end
  end
  cur = tmp
end

puts cur.join(' ')