#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  scanf("%d", &N);
  switch (N) {
    case 1:
      printf("a");
      break;
    case 2:
      printf("aa\n");
      printf("ab");
      break;
    case 3:
      printf("aaa\n");
      printf("aab\n");
      printf("aba\n");
      printf("abb\n");
      printf("abc");
      break;
    case 4:
      printf("aaaa\n");
      printf("aaab\n");
      printf("aaba\n");
      printf("aabb\n");
      printf("aabc\n");
      printf("abaa\n");
      printf("abab\n");
      printf("abac\n");
      printf("abba\n");
      printf("abbb\n");
      printf("abbc\n");
      printf("abca\n");
      printf("abcb\n");
      printf("abcc\n");
      printf("abcd\n");
      break;
    case 5:
      printf("aaaaa\n");
      printf("aaaab\n");
      printf("aaaba\n");
      printf("aaabb\n");
      printf("aaabc\n");
      printf("aabaa\n");
      printf("aabab\n");
      printf("aabac\n");
      printf("aabba\n");
      printf("aabbb\n");
      printf("aabbc\n");
      printf("aabca\n");
      printf("aabcb\n");
      printf("aabcc\n");
      printf("aabcd\n");
      printf("abaaa\n");
      printf("abaab\n");
      printf("abaac\n");
      printf("ababa\n");
      printf("ababb\n");
      printf("ababc\n");
      printf("abaca\n");
      printf("abacb\n");
      printf("abacc\n");
      printf("abacd\n");
      printf("abbaa\n");
      printf("abbab\n");
      printf("abbac\n");
      printf("abbba\n");
      printf("abbbb\n");
      printf("abbbc\n");
      printf("abbca\n");
      printf("abbcb\n");
      printf("abbcc\n");
      printf("abbcd\n");
      printf("abcaa\n");
      printf("abcab\n");
      printf("abcac\n");
      printf("abcad\n");
      printf("abcba\n");
      printf("abcbb\n");
      printf("abcbc\n");
      printf("abcbd\n");
      printf("abcca\n");
      printf("abccb\n");
      printf("abccc\n");
      printf("abccd\n");
      printf("abcda\n");
      printf("abcdb\n");
      printf("abcdc\n");
      printf("abcdd\n");
      printf("abcde\n");
      break;
    case 6:
      break;
  }
  return 0;
}
