s = gets.chomp

result = []

#R + Lの数の合計/2 がRLに集中する
#合計値が偶数の場合はR = L
#合計値が奇数の場合、Rが偶数ならR < L
#上記以外ならR > L

while s[/^(R+)(L+)(.*)$/]
	r = $1
	l = $2
	s = $3
	
	result += Array.new(r.size - 1, 0)

	count = (r.size + l.size) / 2

	if (r.size + l.size) % 2 == 0 then
		result += [count, count]
	elsif r.size % 2 == 0 then
		result += [count, count + 1]
	else
		result += [count + 1, count]
	end

	result += Array.new(l.size - 1, 0)
end

puts result.join(" ")
