#define L(v) for(int v##1=0,v=0;v##1<17;v##1++,v+=v##1>8?-1:1) main(){L(i){L(j){int d=i+j-7;putchar(d>0?'0'+d:' ');}puts("");}}