import sys
import re
s = ''.join(sys.stdin.readlines())
s = re.sub(r'(?m)^\*.*\n?', '', s) 
print s