r=0 while""do c=io.read(1)loadstring("r=r"..c.."2-((c<'/')and 1 or 0)")()print(r)end