import os t=os.read(0,999) s=(' '*42+t)*2 for x in t:s=s[os.write(1,str((s[:122]*3)[::41].count("-*"[x>'*'])or x)):]