#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i='A';i<='A'+n-1;i++) { for(int j=i;j<=i+n-1;j++) { while(j>'Z') j=j-'Z'+'A'; cout<<char(j); } cout<<endl; } return 0; }