S=io.read()

for s,l,m,r in S:gmatch"(()R+()L+())"do
for i=l,m-2 do
	print(0)
end
ln=m-l
rn=r-m
print(math.ceil(ln*.5)+math.floor(rn*.5))
print(math.floor(ln*.5)+math.ceil(rn*.5))
for i=m+1,r-1 do
	print(0)
end
end