
fun main(args: Array<String>) {
    val s = readLine()!!
    val N = s.length
    var r = 0
    val sum = Array(s.length){0}
    s.forEachIndexed { i, c ->
        if (c == 'R') r++
        else {
            sum[i] += r / 2
            sum[i-1] += r / 2 + r % 2
            r = 0
        }
    }
    var l = 0
    s.reversed().forEachIndexed { i, c ->
        if (c == 'L') l++
        else {
            sum[N - i - 1] += l / 2
            sum[N - 1 - (i-1)] += l / 2 + l % 2
            l = 0
        }
    }
    sum.forEach { c -> print(c.toString() + " ") }
}