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