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

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