pos = gets.chomp.chars
dists = Array.new(pos.size, 0)
res = Array.new(pos.size, 0)
change_points = []
current = 'R'

dist = 0

pos.each_with_index do |c, idx|
    if c != current
        dist = 0
        # R => L shift point
        change_points << idx if c == 'L'
        current = c
    end
    dists[idx] = dist
    dist = (dist + 1) % 2
end

current = 'R'
next_change_idx = 0

pos.each_with_index do |i, idx|
    if i != current
        current = i
        if i == 'R'
            next_change_idx = [next_change_idx + 1, change_points.size - 1].min
        end
    end
    change_point = change_points[next_change_idx]

    n = -1

    if i == 'R'
        if dists[idx].even?
            n = change_point - 1
            res[change_point - 1] += 1
        else
            n = change_point
            res[change_point] += 1
        end
    else
        if dists[idx].even?
            n = change_point
            res[change_point] += 1
        else
            n = change_point - 1
            res[change_point - 1] += 1
        end
    end

    # puts "#{idx}(dist=#{dists[idx]}) => {#{n}}"
end
puts res.join(' ')