l,c;main(d){for(;c<22;++c)d=c>14?-1:c<8,printf("%7.*s%d%s\n",~d?d?c:7:21-c,"1234567",l+=11111111*d,"7654321"+(~d?d?7-c:0:c-14));}