s='' $<.map{|x|x.chomp! l=(a=s.size)<(b=x.size)?b*2-1:a*2 puts s=(x*l).chars.zip((s*l).chars).join[0,l]}