package codingBlocks_Pattern;
import java.util.Scanner;
public class Ques_Twenty6 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int row = 1;
int space = n-1;
int star = 1;
while(row <= n) {
int sp = 1;
while(sp<=space) {
System.out.print(" ");
sp++;
}
int st = 1;
while(st <= star) {
for(int i=1;i<=star;i++) {
System.out.print(i+" ");
}
st++;
}
System.out.println();
row++;
star= star+2;
space--;
}
}
}