program ABC136D
    implicit none
    integer(8)::i,j,N
    integer(8),dimension(100000)::L,RL_R
    character(100000)::S
    read(5,*)S
    N=len_trim(S)
    L=0
    j=1

    do i=1,N-1
        if(S(i:i)=="R".and.S(i+1:i+1)=="L")then
            RL_R(j)=i
            j=j+1
        end if
    end do

    j=1
    do i=1,N
        if(i<=RL_R(j))then
            if(mod(RL_R(j)-i,2)==0)then
                L(RL_R(j))=L(RL_R(j))+1
            else
                L(RL_R(j)+1)=L(RL_R(j)+1)+1
            end if
        else if(S(i:i)=="L")then
            if(mod(i-RL_R(j),2)==0)then
                L(RL_R(j))=L(RL_R(j))+1
            else
                L(RL_R(j)+1)=L(RL_R(j)+1)+1
            end if
        else
            j=j+1
            if(mod(RL_R(j)-i,2)==0)then
                L(RL_R(j))=L(RL_R(j))+1
            else
                L(RL_R(j)+1)=L(RL_R(j)+1)+1
            end if
        end if
    end do

    do i=1,N
        write(*,fmt='(i0,1x)',advance='no')L(i)
    end do
    print'(A)',""
end program ABC136D