def make_counts_str(l, r)
    left = l / 2 + r / 2
    right = l / 2 + r / 2
    left += l % 2
    right += r % 2
    return [0] * (l - 1) + [left, right] + [0] * (r - 1)
end

str = gets.chomp
r_counts = str.split(/L+/).map(&:size)
l_counts = str.split(/R+/).map(&:size).drop(1)
puts l_counts.zip(r_counts).map{|r, l| make_counts_str(l, r)}.flatten.join(" ")
