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