#include <bits/stdc++.h>
void solver(int n) {
  int i, j;
  char s[11];
  bzero(s, sizeof(s));
  for (i = 0; i < n; i++) s[i] = 'a';
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      printf("%c", s[j] + ((i & (1 << (n - j - 1)) ? 1 : 0)));
    }
    printf("\n");
  }
}
int main(int argc, char *argv[]) {
  int N;
  scanf("%d", &N);
  solver(N);
  return 0;
}
