#include <bits/stdc++.h>
using namespace std;
char a[11];
char alphabet[100][100];
int main() {
  int n;
  a[1] = 'a';
  a[2] = 'b';
  a[3] = 'c';
  a[4] = 'd';
  a[5] = 'e';
  a[6] = 'f';
  a[7] = 'g';
  a[8] = 'h';
  a[10] = 'i';
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      alphabet[i][j] = a[1];
      if (j == n) {
        alphabet[i][j] = a[i];
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cout << alphabet[i][j] << " ";
    }
    cout << endl;
  }
  return 0;
}
