y=0 while""do a=io.read()for c in("-_"):gfind"."do _,x=a:gsub(c,c)y=y+x,x<1 or print(y+x)end end