str = gets.chomp
numbers = Array.new(str.length)
str.length.times do |i|
	cnt = 0
	if str[i] == "L"
		while str[i - cnt - 1] == "L"
			cnt += 1
		end
	elsif str[i] == "R"
		while str[i + cnt + 1] == "R"
			cnt += 1
		end
	end
	numbers[i] = cnt
end

str.length.times do |i|
	if str[i] == "R"
		numbers[i] = i + numbers[i] + numbers[i] % 2
	else
		numbers[i] = i - numbers[i] - numbers[i] % 2
	end
end
result = Array.new(str.length, 0)
str.length.times do |i|
	result[numbers[i]] += 1
end
puts result.join(" ")