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