s = gets.chomp

ret = Array.new(s.length, 0)

last_r = 0
r = 0

(0..(s.length-1)).each do |i|
    if s[i] == "R"
        last_r = i
        r += 1
    elsif s[i] == "L"
        if (r > 0)
           ret[i-1] = (r+1) / 2
           ret[i] =  r / 2
        end
        index = (last_r - i).even? ? last_r : last_r + 1
        ret[index] += 1
        r = 0
    end
end

puts ret.join(" ")
