while{}do a=io.read()s=""for x in a:gfind"."do s=s..a:match"%S+$":gsub(".",x.."%0 ")end s:gsub("^(.-) ",print)end