str=gets
n=str.length
result=Array.new(n-1,0)
0.upto(n-2) do |i|
    current=i
    past1,past2=-5,-5
    0.upto(10 ** 100) do |j|
        puts j
        if str[i]=="R"
            past2 = past1
            past1 = current
            current += 1
            i += 1
        else
            past2 = past1
            past1 = current
            current -= 1
            i -= 1
        end
        if past2 == current && (j.odd?)
            result[current] += 1
            break
        elsif past2 == current && str[current]=="R"
            result[current+1] += 1
            break
        elsif past2 == current && str[current] == "L"
            result[current-1] += 1
            break
        end
    end
end

puts result.join(" ")