R=raw_input C=list(R()) while 1:print"".join(c>" "and C.pop(0)or c for c in R())