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