#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n;
  if (n == 1) {
    cout << 'a' << endl;
  } else if (n == 2) {
    cout << "aa" << endl << "ab" << endl;
  } else if (n == 3) {
    cout << "aaa" << endl << "aab" << endl << "abb" << endl << "abc" << endl;
  } else if (n == 4) {
    cout << "aaaa" << endl
         << "aaab" << endl
         << "aabb" << endl
         << "abbb" << endl
         << "abbc" << endl
         << "abcc" << endl
         << "abcd" << endl;
  } else if (n == 5) {
    cout << "aaaaa" << endl
         << "aaaab" << endl
         << "aaabb" << endl
         << "aabbb" << endl
         << "abbbb" << endl
         << "abbbc" << endl
         << "abbcc" << endl
         << "abccc" << endl
         << "abccd" << endl
         << "abcdd" << endl
         << "abcde" << endl;
  } else if (n == 6) {
    cout << "aaaaaa" << endl
         << "aaaaab" << endl
         << "aaaabb" << endl
         << "aaabbb" << endl
         << "aabbbb" << endl
         << "abbbbb" << endl
         << "abbbbc" << endl
         << "abbbcc" << endl
         << "abbccc" << endl
         << "abcccc" << endl
         << "abcccd" << endl
         << "abccdd" << endl
         << "abcddd" << endl
         << "abcdde" << endl
         << "abcdee" << endl
         << "abcdef" << endl;
  } else if (n == 7) {
    cout << "aaaaaaa" << endl
         << "aaaaaab" << endl
         << "aaaaabb" << endl
         << "aaaabbb" << endl
         << "aaabbbb" << endl
         << "aabbbbb" << endl
         << "abbbbbb" << endl
         << "abbbbbc" << endl
         << "abbbbcc" << endl
         << "abbbccc" << endl
         << "abbcccc" << endl
         << "abccccc" << endl
         << "abccccd" << endl
         << "abcccdd" << endl
         << "abccddd" << endl
         << "abcdddd" << endl
         << "abcddde" << endl
         << "abcddee" << endl
         << "abcdeee" << endl
         << "abcdeef" << endl
         << "abcdeff" << endl
         << "abcdefg" << endl;
  } else if (n == 8) {
    cout << "aaaaaaaa" << endl
         << "aaaaaaab" << endl
         << "aaaaaabb" << endl
         << "aaaaabbb" << endl
         << "aaaabbbb" << endl
         << "aaabbbbb" << endl
         << "aabbbbbb" << endl
         << "abbbbbbb" << endl
         << "abbbbbbc" << endl
         << "abbbbbcc" << endl
         << "abbbbccc" << endl
         << "abbbcccc" << endl
         << "abbccccc" << endl
         << "abcccccc" << endl
         << "abcccccd" << endl
         << "abccccdd" << endl
         << "abcccddd" << endl
         << "abccdddd" << endl
         << "abcddddd" << endl
         << "abcdddde" << endl
         << "abcdddee" << endl
         << "abcddeee" << endl
         << "abcdeeee" << endl
         << "abcdeeef" << endl
         << "abcdeeff" << endl
         << "abcdefff" << endl
         << "abcdeffg" << endl
         << "abcdefgg" << endl
         << "abcdefgh" << endl;
  } else if (n == 9) {
    cout << "aaaaaaaaa" << endl
         << "aaaaaaaab" << endl
         << "aaaaaaabb" << endl
         << "aaaaaabbb" << endl
         << "aaaaabbbb" << endl
         << "aaaabbbbb" << endl
         << "aaabbbbbb" << endl
         << "aabbbbbbb" << endl
         << "abbbbbbbb" << endl
         << "abbbbbbbc" << endl
         << "abbbbbbcc" << endl
         << "abbbbbccc" << endl
         << "abbbbcccc" << endl
         << "abbbccccc" << endl
         << "abbcccccc" << endl
         << "abccccccc" << endl
         << "abccccccd" << endl
         << "abcccccdd" << endl
         << "abccccddd" << endl
         << "abcccdddd" << endl
         << "abccddddd" << endl
         << "abcdddddd" << endl
         << "abcddddde" << endl
         << "abcddddee" << endl
         << "abcdddeee" << endl
         << "abcddeeee" << endl
         << "abcdeeeee" << endl
         << "abcdeeeef" << endl
         << "abcdeeeff" << endl
         << "abcdeefff" << endl
         << "abcdeffff" << endl
         << "abcdefffg" << endl
         << "abcdeffgg" << endl
         << "abcdefggg" << endl
         << "abcdefggh" << endl
         << "abcdefghh" << endl
         << "abcdefghi" << endl;
  } else if (n == 10) {
    cout << "aaaaaaaaaa" << endl
         << "aaaaaaaaab" << endl
         << "aaaaaaaabb" << endl
         << "aaaaaaabbb" << endl
         << "aaaaaabbbb" << endl
         << "aaaaabbbbb" << endl
         << "aaaabbbbbb" << endl
         << "aaabbbbbbb" << endl
         << "aabbbbbbbb" << endl
         << "abbbbbbbbb" << endl
         << "abbbbbbbbc" << endl
         << "abbbbbbbcc" << endl
         << "abbbbbbccc" << endl
         << "abbbbbcccc" << endl
         << "abbbbccccc" << endl
         << "abbbcccccc" << endl
         << "abbccccccc" << endl
         << "abcccccccc" << endl
         << "abcccccccd" << endl
         << "abccccccdd" << endl
         << "abcccccddd" << endl
         << "abccccdddd" << endl
         << "abcccddddd" << endl
         << "abccdddddd" << endl
         << "abcddddddd" << endl
         << "abcdddddde" << endl
         << "abcdddddee" << endl
         << "abcddddeee" << endl
         << "abcdddeeee" << endl
         << "abcddeeeee" << endl
         << "abcdeeeeee" << endl
         << "abcdeeeeef" << endl
         << "abcdeeeeff" << endl
         << "abcdeeefff" << endl
         << "abcdeeffff" << endl
         << "abcdefffff" << endl
         << "abcdeffffg" << endl
         << "abcdefffgg" << endl
         << "abcdeffggg" << endl
         << "abcdefgggg" << endl
         << "abcdefgggh" << endl
         << "abcdefgghh" << endl
         << "abcdefghhh" << endl
         << "abcdefghhi" << endl
         << "abcdefghii" << endl
         << "abcdefghij" << endl;
  }
  return 0;
}
