#x, y, a, b, c = gets.split.map(&:to_i)

s = gets.chomp
n = s.size

stat = 0
cnt = 0
arrR = []
arrL = []
for i in 0..n-1
    if stat == 0
        if s[i] == 'R'
            cnt += 1
        else
            arrR << cnt
            cnt = 1
            stat = 1
        end
    else # stat == 1
        if s[i] == 'L'
            cnt += 1
        else
            arrL << cnt
            cnt = 1
            stat = 0
        end
    end
end
arrL << cnt

raise 'fail' if arrL.size != arrR.size

ansarr = []
nn = arrR.size
for i in 0..nn-1
    mm = arrR[i]
    for j in 0..mm-2
        ansarr << 0
    end
    lc = mm/2
    rc = (mm + 1)/2

    kk = arrL[i]
    lc += (kk + 1)/2
    rc += kk/2
    ansarr << rc
    ansarr << lc
    for j in 0..kk-2
        ansarr << 0
    end
end

puts ansarr.join(" ")
