#include<iostream>
#include<cmath>
using namespace std;
int main(){
    char t;
    cin>>t;
    char x='A';
    while(x!=char(t+1)){
         int n=t-x;
    for(int i=1;i<=n;i++)
        cout<<" ";
        char m='A';
        while(m!=x){
            cout<<m;
            m=char(int(m+1));
        }
   while(m!='A'){
       cout<<m;
       m=char(int(m-1));
   }
        cout<<m<<endl;
        x=char(x+1);
    }
    return 0;
}
c++写的