#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,i,j,s=65;
cin>>n;
for(i=1;i<=n;i++){
for(j=1;j<=n-i;j++){
cout<<" ";
}
for(j=s;j>=65;j--){
cout<<char(j);
}
for(j=66;j<=s;j++){
cout<<char(j);
}
s++;
cout<<endl;
}
return 0;
}
/**************************************************************
Problem: 1096
User: zzz
Language: C++
Result: Accepted
Time:13 ms
Memory:2072 kb
****************************************************************/