S = gets.chomp.chars
ans = Array.new(S.size, 0)
cnt_r, cnt_l = 0, 0

S.size.times do |i|
    if S[i] == "R"
        cnt_r += 1
    else
        ans[i] += cnt_r / 2
        ans[i - 1] += (cnt_r + 1) / 2
        cnt_r = 0
    end
end

S.size.times do |i|
    j = S.size - i - 1
    if S[j] == "L"
        cnt_l += 1
    else
        ans[j] += cnt_l / 2
        ans[j + 1] += (cnt_l + 1) / 2
        cnt_l = 0
    end
end

puts ans.join(" ")


