fun main(args: Array<String>) {
    val S = readLine()!!

    val e = Array (S.length) { 1 }
    val o = Array (S.length) { 0 }

    for (i in S.indices) {
        if (S[i] == 'R') {
            e[i + 1] += o[i]
            o[i + 1] += e[i]
            o[i] = 0
            e[i] = 0
        }
    }

    for (i in S.indices.reversed()) {
        if (S[i] == 'L') {
            e[i - 1] += o[i]
            o[i - 1] += e[i]
            o[i] = 0
            e[i] = 0
        }
    }

    println(S.indices.map { if (S[it] == 'R') e[it] else o[it - 1] }.joinToString(" "))
}
