local function str2tbl(s)
    -- limit of #s is approximately 999959
    local t = {string.byte(s, 1, #s)}
    local char = string.char
    for i=1, #t do
        t[i] = char(t[i])
    end
    return t
end

--
local S = str2tbl(io.read("l"))
local N = #S
assert(S[1] == 'R')
assert(S[N] == 'L')

local anstbl = {}
for i=1,N do
    anstbl[i] = 0
end

local function inc(i)
    anstbl[i] = anstbl[i] + 1
end

local dst = {}
local nearest_left_R = 1
for i=2, N do
    if S[i] == 'R' then
        nearest_left_R = i
    else
        dst[i] = {'L', nearest_left_R}
    end
end

local nearest_right_L = N
for i=N-1, 1, -1 do
    if S[i] == 'L' then
        nearest_right_L = i
    else
        dst[i] = {'R', nearest_right_L}
    end
end

for i=1, N do
    local lr, nearest_x = dst[i][1], dst[i][2]
    if lr == 'R' then
        local nearest_right_L = nearest_x
        if (nearest_right_L - i) % 2 == 0 then
            inc(nearest_right_L)
        else
            inc(nearest_right_L-1)
        end
    else
        -- lr == 'L'
        local nearest_left_R = nearest_x
        if (i - nearest_left_R ) % 2 == 0 then
            inc(nearest_left_R)
        else
            inc(nearest_left_R+1)
        end
        
    end
end

print(table.concat(anstbl, ' '))
