import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int spaces=N-3;
int dash=2;
int temp=N/2;
int spa=1;
if(N%2!=0){
for(int i=1;i<=1;i++){
for(int j=1;j<=N-1;j++){
System.out.print(" β);
}
for(int j=1;j<=1;j++){
System.out.print(j+β β);
}
for(int j=1;j<=N-1;j++){
System.out.print(β β);
}
System.out.println();
}
for(int i=1;i<(N/2)+1;i++){
for(int j=1;j<=spaces;j++){
System.out.print(β β);
}
//spaces=spaces-2;
for(int j=i+1;j>=1;jβ){
System.out.print(j+β ");
}
for(int j=1;j<=2i-1;j++){
System.out.print(" β);
}
for(int j=1;j<=i+1;j++){
System.out.print(j+β β);
}
for(int j=1;j<=spaces;j++){
System.out.print(β β);
}
spaces=spaces-2;
System.out.println();
}
for(int i=(N/2)+2;i<=N-1;i++){
for(int j=1;j<=dash;j++){
System.out.print(β β);
}
for(int j=temp;j>=1;jβ){
System.out.print(j+β β);
}
for(int j=N-4;j>=spa;jβ){
System.out.print(β β);
}
for(int j=1;j<=N-i+1;j++){
System.out.print(j+β β);
}
for(int j=1;j<=dash;j++){
System.out.print(β ");
}
temp--;
spa=spa+2;
dash=dash+2;
System.out.println();
}
for(int i=1;i<=1;i++){
for(int j=1;j<=N-1;j++){
System.out.print(" ");
}
for(int j=1;j<=1;j++){
System.out.print(j+" ");
}
for(int j=1;j<=N-1;j++){
System.out.print(" ");
}
System.out.println();
}
}
}
}