#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a" << endl;
  } else if (n == 2) {
    cout << "aa" << endl;
    cout << "ab" << endl;
  } else if (n == 3) {
    cout << "aaa" << endl;
    cout << "aab" << endl;
    cout << "aba" << endl;
    cout << "abb" << endl;
    cout << "abc" << endl;
  } else if (n == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aaba" << endl;
    cout << "aabb" << endl;
    cout << "aabc" << endl;
    cout << "abaa" << endl;
    cout << "abab" << endl;
    cout << "abac" << endl;
    cout << "abba" << endl;
    cout << "abbb" << endl;
    cout << "abbc" << endl;
    cout << "abca" << endl;
    cout << "abcb" << endl;
    cout << "abcc" << endl;
    cout << "abcd" << endl;
  } else if (n == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaaba" << endl;
    cout << "aaabb" << endl;
    cout << "aaabc" << endl;
    cout << "aabaa" << endl;
    cout << "aabab" << endl;
    cout << "aabac" << endl;
    cout << "aabba" << endl;
    cout << "aabbb" << endl;
    cout << "aabbc" << endl;
    cout << "aabca" << endl;
    cout << "aabcb" << endl;
    cout << "aabcc" << endl;
    cout << "aabcd" << endl;
    cout << "abaaa" << endl;
    cout << "abaab" << endl;
    cout << "abaac" << endl;
    cout << "ababa" << endl;
    cout << "ababb" << endl;
    cout << "ababc" << endl;
    cout << "abaca" << endl;
    cout << "abacb" << endl;
    cout << "abacc" << endl;
    cout << "abacd" << endl;
    cout << "abbaa" << endl;
    cout << "abbab" << endl;
    cout << "abbac" << endl;
    cout << "abbba" << endl;
    cout << "abbbb" << endl;
    cout << "abbbc" << endl;
    cout << "abbca" << endl;
    cout << "abbcb" << endl;
    cout << "abbcc" << endl;
    cout << "abbcd" << endl;
    cout << "abcaa" << endl;
    cout << "abcab" << endl;
    cout << "abcac" << endl;
    cout << "abcad" << endl;
    cout << "abcba" << endl;
    cout << "abcbb" << endl;
    cout << "abcbc" << endl;
    cout << "abcbd" << endl;
    cout << "abcca" << endl;
    cout << "abccb" << endl;
    cout << "abccc" << endl;
    cout << "abccd" << endl;
    cout << "abcda" << endl;
    cout << "abcdb" << endl;
    cout << "abcdc" << endl;
    cout << "abcdd" << endl;
    cout << "abcde" << endl;
  } else if (n == 6) {
    cout << "aaaaaa" << endl;
    cout << "aaaaab" << endl;
    cout << "aaaaba" << endl;
    cout << "aaaabb" << endl;
    cout << "aaaabc" << endl;
    cout << "aaabaa" << endl;
    cout << "aaabab" << endl;
    cout << "aaabac" << endl;
    cout << "aaabba" << endl;
    cout << "aaabbb" << endl;
    cout << "aaabbc" << endl;
    cout << "aaabca" << endl;
    cout << "aaabcb" << endl;
    cout << "aaabcc" << endl;
    cout << "aaabcd" << endl;
    cout << "aabaaa" << endl;
    cout << "aabaab" << endl;
    cout << "aabaac" << endl;
    cout << "aababa" << endl;
    cout << "aababb" << endl;
    cout << "aababc" << endl;
    cout << "aabaca" << endl;
    cout << "aabacb" << endl;
    cout << "aabacc" << endl;
    cout << "aabacd" << endl;
    cout << "aabbaa" << endl;
    cout << "aabbab" << endl;
    cout << "aabbac" << endl;
    cout << "aabbba" << endl;
    cout << "aabbbb" << endl;
    cout << "aabbbc" << endl;
    cout << "aabbca" << endl;
    cout << "aabbcb" << endl;
    cout << "aabbcc" << endl;
    cout << "aabbcd" << endl;
    cout << "aabcaa" << endl;
    cout << "aabcab" << endl;
    cout << "aabcac" << endl;
    cout << "aabcad" << endl;
    cout << "aabcba" << endl;
    cout << "aabcbb" << endl;
    cout << "aabcbc" << endl;
    cout << "aabcbd" << endl;
    cout << "aabcca" << endl;
    cout << "aabccb" << endl;
    cout << "aabccc" << endl;
    cout << "aabccd" << endl;
    cout << "aabcda" << endl;
    cout << "aabcdb" << endl;
    cout << "aabcdc" << endl;
    cout << "aabcdd" << endl;
    cout << "aabcde" << endl;
    cout << "abaaaa" << endl;
    cout << "abaaab" << endl;
    cout << "abaaac" << endl;
    cout << "abaaba" << endl;
    cout << "abaabb" << endl;
    cout << "abaabc" << endl;
    cout << "abaaca" << endl;
    cout << "abaacb" << endl;
    cout << "abaacc" << endl;
    cout << "abaacd" << endl;
    cout << "ababaa" << endl;
    cout << "ababab" << endl;
    cout << "ababac" << endl;
    cout << "ababba" << endl;
    cout << "ababbb" << endl;
    cout << "ababbc" << endl;
    cout << "ababca" << endl;
    cout << "ababcb" << endl;
    cout << "ababcc" << endl;
    cout << "ababcd" << endl;
    cout << "abbaaa" << endl;
    cout << "abbaab" << endl;
    cout << "abbaac" << endl;
    cout << "abbaba" << endl;
    cout << "abbabb" << endl;
    cout << "abbabc" << endl;
    cout << "abbbaa" << endl;
    cout << "abbbab" << endl;
    cout << "abbbac" << endl;
    cout << "abbbba" << endl;
    cout << "abbbbb" << endl;
    cout << "abbbbc" << endl;
    cout << "abbbcb" << endl;
    cout << "abbbcc" << endl;
    cout << "abbbcd" << endl;
    cout << "abbcaa" << endl;
    cout << "abbcab" << endl;
    cout << "abbcac" << endl;
    cout << "abbcad" << endl;
    cout << "abbcba" << endl;
    cout << "abbcbb" << endl;
    cout << "abbcbc" << endl;
    cout << "abbcbd" << endl;
    cout << "abbcca" << endl;
    cout << "abbccb" << endl;
    cout << "abbccc" << endl;
    cout << "abbccd" << endl;
    cout << "abbcda" << endl;
    cout << "abbcdb" << endl;
    cout << "abbcdc" << endl;
    cout << "abbcdd" << endl;
    cout << "abbcde" << endl;
    cout << "abcaaa" << endl;
    cout << "abcaab" << endl;
    cout << "abcaac" << endl;
    cout << "abcaad" << endl;
    cout << "abcaba" << endl;
    cout << "abcabb" << endl;
    cout << "abcabc" << endl;
    cout << "abcabd" << endl;
    cout << "abcaca" << endl;
    cout << "abcacb" << endl;
    cout << "abcacc" << endl;
    cout << "abcacd" << endl;
    cout << "abcada" << endl;
    cout << "abcadb" << endl;
    cout << "abcadc" << endl;
    cout << "abcadd" << endl;
    cout << "abcade" << endl;
    cout << "abcbaa" << endl;
    cout << "abcbab" << endl;
    cout << "abcbac" << endl;
    cout << "abcbad" << endl;
    cout << "abcbba" << endl;
    cout << "abcbbb" << endl;
    cout << "abcbbc" << endl;
    cout << "abcbca" << endl;
    cout << "abcbcb" << endl;
    cout << "abcbcc" << endl;
    cout << "abcbcd" << endl;
    cout << "abcbda" << endl;
    cout << "abcbdb" << endl;
    cout << "abcbdc" << endl;
    cout << "abcbdd" << endl;
    cout << "abcbde" << endl;
    cout << "abccaa" << endl;
    cout << "abccab" << endl;
    cout << "abccac" << endl;
    cout << "abccad" << endl;
    cout << "abccba" << endl;
    cout << "abccbb" << endl;
    cout << "abccbc" << endl;
    cout << "abccbd" << endl;
    cout << "abccca" << endl;
    cout << "abcccb" << endl;
    cout << "abcccc" << endl;
    cout << "abcccd" << endl;
    cout << "abccda" << endl;
    cout << "abccdb" << endl;
    cout << "abccdc" << endl;
    cout << "abccdd" << endl;
    cout << "abccde" << endl;
    cout << "abcdaa" << endl;
    cout << "abcdab" << endl;
    cout << "abcdac" << endl;
    cout << "abcdad" << endl;
    cout << "abcdae" << endl;
    cout << "abcdba" << endl;
    cout << "abcdbb" << endl;
    cout << "abcdbc" << endl;
    cout << "abcdbd" << endl;
    cout << "abcdbe" << endl;
    cout << "abcdca" << endl;
    cout << "abcdcb" << endl;
    cout << "abcdcc" << endl;
    cout << "abcdcd" << endl;
    cout << "abcdce" << endl;
    cout << "abcdda" << endl;
    cout << "abcddb" << endl;
    cout << "abcddc" << endl;
    cout << "abcddd" << endl;
    cout << "abcdde" << endl;
    cout << "abcdea" << endl;
    cout << "abcdeb" << endl;
    cout << "abcdec" << endl;
    cout << "abcded" << endl;
    cout << "abcdee" << endl;
    cout << "abcdef" << endl;
  } else if (n == 7) {
  } else if (n == 8) {
  } else if (n == 9) {
  } else if (n == 10) {
  }
}
