for(s="";s!=(s=(r=readline())?s+r+"\n":s.replace(/^ *\n |(\S)(\W{50}) /,' $2$1')););print(s)