#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
char f[26];
strcpy(f,"ABCDEFGHIJKLMNOPQRSJUVWXYZ");
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(i+j<=26){
cout<<f[i+j];
}
else{
int a=i+j;
while(a>26){
a=a-27;
}
cout<<f[a];
}
}
cout<<endl;
}
return 0;
}