for(i=0;it[i++]=readline(););for(a=it[0].length;a--;print(o))for(o='',b=0;b