while 1: o="";p=0 for c in raw_input():p^=c>" ";o+=[c,"*"][c*p==" "] print o