#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  if (n == 1)
    cout << "a";
  else if (n == 2)
    cout << "aa"
         << "\n"
         << "ab";
  else if (n == 3) {
    cout << "aaa"
         << "\n"
         << "aab"
         << "\n"
         << "aba"
         << "\n"
         << "abb"
         << "\n"
         << "abc";
  } else if (n == 4) {
    cout << "aaaa"
         << "\n"
         << "aaab"
         << "\n"
         << "aaba"
         << "\n"
         << "aabb"
         << "\n"
         << "aabc"
         << "\n";
    cout << "abbb"
         << "\n"
         << "abcc"
         << "\n"
         << "abcd";
  } else if (n == 5) {
    cout << "aaaaa"
         << "\n"
         << "aaaab"
         << "\n"
         << "aaaba"
         << "\n"
         << "aaabb"
         << "\n"
         << "aaabc"
         << "\n"
         << "aabbb"
         << "\n";
    cout << "aabbc"
         << "\n"
         << "aabcc"
         << "\n"
         << "aabcd"
         << "\n"
         << "abbbb"
         << "\n"
         << "abbbc"
         << "\n"
         << "abbcc"
         << "\n"
         << "abccc"
         << "\n";
    cout << "abccd"
         << "\n"
         << "abcdd"
         << "\n"
         << "abcde";
  } else if (n == 6) {
    cout << "aaaaaa"
         << "\n"
         << "aaaaab"
         << "\n"
         << "aaaabb"
         << "\n"
         << "aaaabc"
         << "\n"
         << "aaabbb"
         << "\n"
         << "aaabbc"
         << "\n"
         << "aaabcc"
         << "\n"
         << "aaabcd"
         << "\n";
    cout << "aabbbb"
         << "\n"
         << "aabbbc"
         << "\n"
         << "aabbcc"
         << "\n"
         << "aabbcd"
         << "\n"
         << "aabccc"
         << "\n"
         << "aabccd"
         << "\n"
         << "aabcde"
         << "\n"
         << "abbbbb"
         << "\n"
         << "abbbbc"
         << "\n"
         << "abbbcd"
         << "\n";
    cout << "abbccd"
         << "\n"
         << "abbcdd"
         << "\n"
         << "abbcde"
         << "\n"
         << "abcccc"
         << "\n"
         << "abcccd"
         << "\n"
         << "abccdd"
         << "\n"
         << "abccde"
         << "\n"
         << "abcddd"
         << "\n"
         << "abcdde"
         << "\n";
    cout << "abcdee"
         << "\n"
         << "abcdef"
         << "\n";
  }
}
