import os t=os.read(0,999) s=(' '*18+t)*2 for x in t:os.write(1,[x,`(s[:50]*3)[::17].count('*')`]['*'