fun main(args: Array<String>) {
    val s = readLine()!!
    val result = Array<Int>(s.length) { 0 }
    var count = 0

    for (i in s.indices) {
        if (s[i] == 'R') {
            count += 1
        } else {
            result[i] += count / 2
            result[i - 1] += (count + 1) / 2
            count = 0
        }
    }

    for (i in s.lastIndex downTo 0) {
        if (s[i] == 'L') {
            count += 1
        } else {
            result[i] += count / 2
            result[i + 1] += (count + 1) / 2
            count = 0
        }
    }

    println(result.joinToString(" "))
}