S = gets.chomp # "R...L".length == N

a = [1] * S.length
(10**5).times{
	b = [0] * S.length
	S.length.times{|i|
		if S[i] == ?L
			b[i-1] += a[i]
		else
			b[i+1] += a[i]
		end
	}
	a = b
}
puts a.join(" ")
