S = gets.chomp
size = S.size
a = Array.new(size,0)
odd = 0
even = 0
l = 0
r = 0
f = 0

for i in 0...size do
    if S[i] == 'R'
        if f == 0
            if i % 2 == 0
                even += 1
            else
                odd += 1
            end
        else
            f = 0
            if l%2 == 0
                a[l] = even
                a[r] = odd
            else
                a[r] = even
                a[l] = odd
            end
            even = 0
            odd = 0
            if i % 2 == 0
                even += 1
            else
                odd += 1
            end
        end
    else
        if i % 2 == 0
            even += 1
        else
            odd += 1
        end
        if f == 0
            f = 1
            l = i-1
            r = i
        end
    end
end
if l%2 == 0
    a[l] = even
    a[r] = odd
else
    a[r] = even
    a[l] = odd
end

for i in 0...size do
    print a[i]
    print " "
end
puts