for(R=23,U='';--R;U+='\n')for(C=23;--C;U+=T<8?8-T:C<9?'':' ')T=R<9?8-R:R<16?0:R-15,T+=C<9?8-C:C<16?0:C-15;print(U)