s=0 while""do r=io.read()for c in("-_"):gmatch"."do d=#r-#r:gsub(c,'')s=s+d if d>0 then print(s)end end end