/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package BASICJAVA;
import java.util.Scanner;
/**
*
* @author ABIR
*/
public class Rhombus_Number {
public static void main(String[]args){
Scanner abir=new Scanner(System.in);
System.out.println("Sample Input");
int x=abir.nextInt();
System.out.println("Sample output");
int c=0;
while(c<x){
int d=x-1;
while(d>c){
System.out.print(" ");
d--;
}
int e=0;
while(e<=c+c){
System.out.print(e+1);
e++;
}
System.out.println();
c++;
}
int f=x-2;
while(f>=0){
int k=f;
while(k<x-1){
System.out.print(" ");
k++;
}
int l=0;
while(l<=f+f){
System.out.print(l+1);
l++;
}
f--;
System.out.println();
}
System.out.println("=======================================================");
}
}