import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int N = scn.nextInt();
int nsp=N;
int nst=0;
int row=1;
while(row<=N) {
int temp = 1;
for(int csp=1;csp<=nsp;csp++) {
System.out.print(temp+++"\t");
}
for(int cst=1;cst<=nst;cst++) {
System.out.print("*\t");
}
System.out.println();
if(row<N/2)
{row++;
nsp–;
nst++;}
else {row++;
nsp–;
nst+=2;
}
}
}
}