o=[i=0] System.in.eachLine{j=-1 it.each{s=o[x=49+i-++j]?:'' o[x]=s+' '*((i+j)*2-s.count)+it} ++i} o.any{it&&println(it)}