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