S = gets.chomp
N = S.size
a = [1] * N

S.gsub!(/RL/,"Z")
zhash = Hash.new([1,1])
r_lists = Hash.new(0)
l_lists = Hash.new(0)
z_position = -1
for i in 0...(S.size) do
    if S[i] == "R"
        r_lists[i%2] += 1
    elsif S[i] == "Z"
        z_position = i
        rv,lv = zhash[i]
        if i%2 == 0
            zhash[i] = [rv + r_lists[0], lv + r_lists[1]]
        else
            zhash[i] = [rv + r_lists[1], lv + r_lists[0]]
        end
        r_lists = Hash.new(0)
    elsif S[i] == "L"
        rv,lv = zhash[z_position]
        if z_position%2 == i%2
            zhash[z_position] = [rv, lv + 1]
        else
            zhash[z_position] = [rv + 1, lv]
        end
    end
end

ans = []
for i in 0...(S.size) do
    if S[i] == "Z"
        a,b = zhash[i]
        ans.push(a)
        ans.push(b)
    else
        ans.push(0)
    end
end

puts ans.join(" ")

=begin
def simu(a)
    tmp = a.dup
    for i in 0...N do
        if S[i] == "R"
            a[i]   -= tmp[i]
            a[i+1] += tmp[i]
        else
            a[i]   -= tmp[i]
            a[i-1] += tmp[i]
        end
    end
    p a
end

p a
simu(a)
simu(a)
simu(a)
simu(a)
simu(a)
simu(a)
simu(a)
=end