let S = readLine()!.characters
var ans = (0..<S.count).map{_ in 0}
var a = [0, 0]
for (i, c) in S.enumerate() {
    if c == "R" {
        a[i%2]++
    } else {
        ans[i] += a[i%2]
        ans[i-1] += a[i%2^1]
        a = [0, 0]
    }
}
for (i, c) in S.enumerate().reverse() {
    if c == "L" {
        a[i%2]++
    } else {
        ans[i] += a[i%2]
        ans[i+1] += a[i%2^1]
        a = [0, 0]
    }
}
ans.forEach{print($0, terminator: " ")}