fun main(args: Array<String>) {
    val s = readString()

    val ans = MutableList(s.length) { 0 }

    var i = 0
    while (i <= s.length - 1) {
        var numR = 0
        var numL = 0
        while (s[i] == 'R') {
            numR++
            i++
        }
        var iR = i - 1
        while (s[i] == 'L') {
            i++
            numL++
            if (i > s.length - 1) break
        }
        ans[iR] += (numR / 2 + numR % 2 + numL / 2)
        ans[iR+1] += (numL / 2 + numL % 2 + numR / 2)
    }
    val ansS = StringBuilder()
    ans.forEach { ansS.append("$it ") }
    println(ansS.toString())
}

// Tools
fun readString() = readLine()!!