j=x=input() while j:i=x/2;j-=1;exec"'%3s'%(1+~(i*x-(i+j)%x*~x)%x**2),;i+=1;print"*-~x