import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n =s.nextInt();
int nos=1;
while(n>0){
int i=1;
while(i<=n){
System.out.print(i+" ");
i++;
}
for(int j=0;j<nos;j++){
System.out.print("*"+" ");
}
nos+=2;
System.out.println();
n--;
}
}
}