import re s=raw_input() exec'print s;s=re.sub(" \S"," "," "+s)[1:];'*9