b=[] System.in.eachLine{i=0 it.each{b[i]=it-' '?:b[i]?:' ';i++} println b.join();}