import re while 1:x=re.sub(' *" *',lambda m:x[m.start():[m.end(),len(x)][m.start()>0]],raw_input());print x