#include <bits/stdc++.h> using namespace std;

int main() { char c; cin >> c; int n = c - 64; for(int i=1;i<=n;i++){ int a=65; for(int j=1;j<=n-i;j++) cout << " "; for(int j=1;j<=i;j++){ cout << char(a++); } a--; for(int j=1;j<=i-1;j++){ cout << char(--a); } for(int j=1;j<=n-i;j++) cout << " "; cout << endl; }

}