local children={}
for s,L,M,R in io.read():gmatch"(()R+()L+())"do
    for i=L,M-2 do
        table.insert(children,0)
    end
    local left=M-L
    local right=R-M
    table.insert(children, (left+1)//2+right//2)
    table.insert(children, left//2+(right+1)//2)
    for i=M+1,R-1 do
        table.insert(children,0)
    end
end
print(table.concat(children," "))