s = gets.chomp

$result = []

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

r = 0
l = 0
is_l = false

def count_up(r, l)
	$result += Array.new(r - 1, 0)

	count = (r + l) / 2

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

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

s.each{ |c|
	if c == 'R' then
		if is_l then
			count_up(r, l)

			is_l = false
			r = 1
			l = 0
		else
			r += 1
		end
	else
		is_l = true
		l += 1
	end
}

count_up(r, l)

puts result.join(" ")
