class Number
	def initialize(n)
		@num = n
	end

	def move (numbers, count)
		count.times do
			@num += numbers[@num]
		end
		@num
	end
end

str = gets.chomp
numbers = []
str.length.times do |i|
	if str[i] == "L"
		numbers[i] = -1
	elsif str[i] == "R"
		numbers[i] = 1
	end
end
result = Array.new(str.length, 0)
str.length.times do |i|
	ins = Number.new(i)
	result[ins.move(numbers, 10 ^ 100)] += 1
end
puts result.join(" ")