
S=gets.chomp


ans=Array.new(S.length,0)


count1=0
count2=0
point1=-1
point2=-1
old="R"
S.each_char.each_with_index do |c,i|
  if old=="R"
    if c=="R"
      count1+=1
    else
      count1+=1
      point1=i-1
      point2=i
      ans[point1]+=count2
      ans[point2]+=count1
      count1,count2=[0,0]
    end
  else
    if c=="R"
      ans[point1]+=count2
      ans[point2]+=count1
      count1,count2=[0,0]
      count1+=1
    else
      count1+=1
    end
  end
  count2,count1=count1,count2
  old=c
end
ans[point1]+=count2
ans[point2]+=count1


puts ans.join(" ")
