fun main(args : Array<String>) {
    val s = readLine()!!
    val cc = IntArray(s.length){0}

    var rCnt = 1
    var lCnt = 0
    var wasR = true
    var lastRLIdx = 0

    for (i in 1 until s.length) {
        if (s[i] == 'R') {
            if (lCnt > 0) {
                cc[lastRLIdx] += ((lCnt+1)/2)
                cc[lastRLIdx+1] += (lCnt/2)
                lCnt = 0
            }
            wasR = true
            lastRLIdx = i
            rCnt++
        } else {
            if (wasR) { // RL
                cc[i-1] += ((rCnt-1)/2)+1
                cc[i] += (rCnt/2)+1
                rCnt = 0
            } else {
                lCnt++
            }
            wasR = false
        }
    }

    if (lCnt > 0) {
        cc[lastRLIdx] += ((lCnt+1)/2)
        cc[lastRLIdx+1] += (lCnt/2)
    }

    println(cc.joinToString(separator = " "))
}