import java.util.;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc= new Scanner(System.in);
System.out.println(“Enter the value of n:”);
int n = sc.nextInt();
int nst= -1;
int nsp=n;
int row=1;
if(n!=0){
while(row<=n){
int val=1;
for(int csp=1;csp<=nsp;csp++){
System.out.print(val + " “);
val=val+1;
}
for(int cst=1;cst<=nst;cst++){
System.out.print(”" + " ");
}
System.out.println();
nst= nst+2;
nsp= nsp-1;
row= row+1;
}
}
else
System.out.println("-1");
}
}