main=interact$(""%).lines s%(t:x)=s&t++'\n':t%x;s%_=s&"" ""&""="" (a:x)&(b:y)|' '