fun main(args: Array<String>) {
    val s = readLine()!!.toCharArray()
    val result = IntArray(s.size)
    var repeat = 0
    for (i in 0 until s.size) {
        if (s[i] == 'R') {
            repeat += 1
            if (s[i+1]  == 'L') {
                result[i+1] += repeat/2
                result[i] += (repeat+1)/2
            }
        }else{
            repeat = 0
        }
    }
    repeat = 0
    for (i in s.size-1 downTo 0) {
        if (s[i] == 'L') {
            repeat += 1
            if (s[i-1] == 'R') {
                result[i-1] += repeat/2
                result[i] += (repeat+1)/2
            }
        }else{
            repeat = 0
        }
    }
    println(result.joinToString(" "))
}
