for(j in scan("stdin")*2+1)write(diag(0:j*j:0)[1:j,-1],1,j)