require 'pp'

# 入力値を文字の配列で返却する
def gets_nsp_list()
  gets.chomp.split("")
end

s_list = gets_nsp_list
N = s_list.size
children = Array.new(N,1)
10**100.times do
  tmp_children = Array.new(N,0)
  s_list.each_with_index do |s, i|
    current = children[i]
    if s == "R"
      tmp_children[i+1] += current
    elsif s == "L"
      current = children[i]
      tmp_children[i-1] += current
    end
  end
  children = tmp_children
end
puts children.join(" ")
