S = gets.chomp
C = Array.new(S.size, 0)

S.size.times do |i|
    if S[i] == "R"
        (i+1).upto(S.size-1).each do |t|
            if S[t] == "L"
                if (t-i).odd?
                    C[t - 1] += 1
                else
                    C[t] += 1
                end
                break
            end
        end
    else
        (i-1).downto(0).each do |t|
            if S[t] == "R"
                if (i-t).odd?
                    C[t + 1] += 1
                else
                    C[t] += 1
                end
                break
            end
        end
    end
end

puts C.join(" ")