s="(%S+ ).*"while""do r=io.read()io.write(((r.." "):rep(#r):gsub(s,"%1")))s=r>""and"%S+ +"..s or s end