var L=readLine;for(_<-L){println(L);var i=0;L=L.init map{c=>i+=1;c-L(i)+""last}}