import re while 1:print re.sub(" (?= *(\S *\S *)*\S *$)","*",raw_input())