#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[100], b[100], c = 0, i, n;
  scanf("%d", &n);
  a[1] = 1;
  for (b[1] = 1; b[1] <= a[1]; b[1]++) {
    if (b[1] == 1) c++;
    if (c > n) break;
    for (b[2] = 1; b[2] <= b[1] + 1; b[2]++) {
      if (b[2] == 1) c++;
      if (c > n) break;
      for (b[3] = 1; b[3] <= b[2] + 1; b[3]++) {
        if (b[3] == 1) c++;
        if (c > n) break;
        for (b[4] = 1; b[4] <= b[3] + 1; b[4]++) {
          if (b[4] == 1) c++;
          if (c > n) break;
          for (b[5] = 1; b[5] <= b[4] + 1; b[5]++) {
            if (b[5] == 1) c++;
            if (c > n) break;
            for (b[6] = 1; b[6] <= b[5] + 1; b[6]++) {
              if (b[6] == 1) c++;
              if (c > n) break;
              for (b[7] = 1; b[7] <= b[6] + 1; b[7]++) {
                if (b[7] == 1) c++;
                if (c > n) break;
                for (b[8] = 1; b[8] <= b[7] + 1; b[8]++) {
                  if (b[8] == 1) c++;
                  if (c > n) break;
                  for (b[9] = 1; b[9] <= b[8] + 1; b[9]++) {
                    if (b[9] == 1) c++;
                    if (c > n) break;
                    for (b[10] = 1; b[10] <= b[9] + 1; b[10]++) {
                      if (b[10] == 1) c++;
                      if (c > n) break;
                      for (i = 1; i <= n; i++) printf("%c", b[i] + 96);
                      printf("\n");
                    }
                    for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
                    printf("\n");
                  }
                  for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
                  printf("\n");
                }
                for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
                printf("\n");
              }
              for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
              printf("\n");
            }
            for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
            printf("\n");
          }
          for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
          printf("\n");
        }
        for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
        printf("\n");
      }
      for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
      printf("\n");
    }
    for (i = 1; i <= n; i++) printf("%c", 96 + b[i]);
    printf("\n");
  }
  return 0;
}
