#include <bits/stdc++.h>
using namespace std;
int main() {
  long long 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 << "abb" << endl;
    cout << "abc" << endl;
  } else if (N == 4) {
    cout << "aaaa" << endl;
    cout << "abbb" << endl;
    cout << "abcc" << endl;
    cout << "abcd" << endl;
  } else if (N == 5) {
    cout << "aaaaa" << endl;
    cout << "abbbb" << endl;
    cout << "abccc" << endl;
    cout << "abcdd" << endl;
    cout << "abcde" << endl;
  } else if (N == 6) {
    cout << "aaaaaa" << endl;
    cout << "abbbbb" << endl;
    cout << "abcccc" << endl;
    cout << "abcddd" << endl;
    cout << "abcdee" << endl;
    cout << "abcdef" << endl;
  } else if (N == 7) {
    cout << "aaaaaaa" << endl;
    cout << "abbbbbb" << endl;
    cout << "abccccc" << endl;
    cout << "abcdddd" << endl;
    cout << "abcdeee" << endl;
    cout << "abcdeff" << endl;
    cout << "abcdefg" << endl;
  } else if (N == 8) {
    cout << "aaaaaaaa" << endl;
    cout << "abbbbbbb" << endl;
    cout << "abcccccc" << endl;
    cout << "abcddddd" << endl;
    cout << "abcdeeee" << endl;
    cout << "abcdefff" << endl;
    cout << "abcdefgg" << endl;
    cout << "abcdefgh" << endl;
  } else if (N == 9) {
    cout << "aaaaaaaaa" << endl;
    cout << "abbbbbbbb" << endl;
    cout << "abccccccc" << endl;
    cout << "abcdddddd" << endl;
    cout << "abcdeeeee" << endl;
    cout << "abcdeffff" << endl;
    cout << "abcdefggg" << endl;
    cout << "abcdefghh" << endl;
    cout << "abcdefghi" << endl;
  } else if (N == 10) {
    cout << "aaaaaaaaaa" << endl;
    cout << "abbbbbbbbb" << endl;
    cout << "abcccccccc" << endl;
    cout << "abcddddddd" << endl;
    cout << "abcdeeeeee" << endl;
    cout << "abcdefffff" << endl;
    cout << "abcdefgggg" << endl;
    cout << "abcdefghhh" << endl;
    cout << "abcdefghii" << endl;
    cout << "abcdefghij" << endl;
  }
  return 0;
}
