t=0 System.in.eachLine{r->m=s='' 9.times{i->s+=i?c ':'' s+=c=r[i] m+=t?c