import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int i=0;i<2*n-1;i++){
for(int j=0;j<2*n-1;j++){
int top=i;
int left=j;
int bottom=(2*n-2)-i;
int right=(2*n-2)-j;
int value=Math.min(Math.min(top,bottom),Math.min(left,right));
System.out.print(n-value);
}
System.out.println("");
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: