fun main(args: Array<String>) = yorukatsu11c()

fun yorukatsu11c() {
    val dirR = readLine()!!.map { it == 'R' }.toBooleanArray()

    val counts = IntArray(dirR.size)

    for (i in dirR.indices) {
        if (i + 1 !in dirR.indices || !dirR[i] || dirR[i + 1]) continue

        var left = i
        while (left in dirR.indices && dirR[left]) {
            if ((i - left--) % 2 == 0) counts[i]++ else counts[i + 1]++
        }

        var right = i + 1
        while (right in dirR.indices && !dirR[right]) {
            if ((i - right++) % 2 == 0) counts[i]++ else counts[i + 1]++
        }
    }

    val answer = counts.joinToString(" ")

    println(answer)
}
