s = gets.chomp.split("")

n = s.size
sum = Array.new(n,0)

child = Array.new(2,0)
tar = s[0]
cnt = 0
lastL = 0

for i in 1..n do
    if s[i-1] == tar
        cnt += 1
        child[cnt%2] += 1
    else
        if tar == "R"
            last = i-1
            sum[i-1] += child[0]
            sum[i-2] += child[1]
        else
            sum[last] += child[1]
            sum[last-1] += child[0]            
        end

        tar = s[i-1]
        cnt = 1
        child[0] = 0
        child[1] = 1
    end
end

sum[last] += child[1]
sum[last-1] += child[0]            

for i in 1..n do
    print sum[i-1]," "
end
