#abc136 D
s = gets
n,l,r = s.length, 0, 0
ans = Array.new(n,0)

n.times do |i|
	if s[i]=='R'
		if (l+r).even?
			l+=1
		else
			r+=1
		end
	else
		ans[i-1] += l
		ans[i] += r
		l,r=0,0
	end
end

(n-1).downto(0) do |i|
	if s[i]=='L'
		if (l+r).odd?
			l+=1
		else
			r+=1
		end
	else
		ans[i] += l
		ans[i+1] += r
		l,r=0,0
	end
end

ans.each do |x|
	print x,' '
end
