s = gets.chomp!
chs = s.chars.chunk_while{|i, j| i == j }.to_a
chs.unshift([])
chs.push([])
ans = Array.new(s.length, 0)

i = 0
chs.each_cons(3) do |before_part, part, next_part|
    #pp ans
    if part[0] == "R"
        # 末尾以外
        (part.length - 1).times do |x|
            ans[i + x] = 0
        end
        i += part.length - 1
        # 末尾
        if s.length % 2 == 0
            ans[i] = 
                (part.length + next_part.length) / 2 + 
                (part.length + next_part.length) % 2
        else
            ans[i] = (part.length + next_part.length) / 2
        end
        i += 1
    else
        # 先頭
        if s.length % 2 == 0
            ans[i] = (part.length + before_part.length) / 2
        else
            ans[i] = 
            (part.length + before_part.length) / 2 + 
            (part.length + before_part.length) % 2
        end
        i += 1

        # 先頭以外
        (part.length - 1).times do |x|
            ans[i + x] = 0
        end
        i += part.length - 1
    end
end

puts ans.join(" ")
