#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  if (N == 1) {
    cout << "a" << endl;
  }
  if (N == 2) {
    cout << "aa" << endl;
    cout << "ab" << endl;
  }
  if (N == 3) {
    cout << "aaa" << endl;
    cout << "aab" << endl;
    cout << "abc" << endl;
  }
  if (N == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aabc" << endl;
    cout << "abcd" << endl;
  }
  if (N == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaabc" << endl;
    cout << "aabcd" << endl;
    cout << "abcde" << endl;
  }
  if (N == 6) {
    cout << "aaaaaa" << endl;
    cout << "aaaaab" << endl;
    cout << "aaaabc" << endl;
    cout << "aaabcd" << endl;
    cout << "aabcde" << endl;
    cout << "abcdef" << endl;
  }
  if (N == 7) {
    cout << "aaaaaaa" << endl;
    cout << "aaaaaab" << endl;
    cout << "aaaaabc" << endl;
    cout << "aaaabcd" << endl;
    cout << "aaabcde" << endl;
    cout << "aabcdef" << endl;
    cout << "abcdefg" << endl;
  }
  if (N == 8) {
    cout << "aaaaaaaa" << endl;
    cout << "aaaaaaab" << endl;
    cout << "aaaaaabc" << endl;
    cout << "aaaaabcd" << endl;
    cout << "aaaabcde" << endl;
    cout << "aaabcdef" << endl;
    cout << "aabcdefg" << endl;
    cout << "abcdefgh" << endl;
  }
  if (N == 9) {
    cout << "aaaaaaaaa" << endl;
    cout << "aaaaaaaab" << endl;
    cout << "aaaaaaabc" << endl;
    cout << "aaaaaabcd" << endl;
    cout << "aaaaabcde" << endl;
    cout << "aaaabcdef" << endl;
    cout << "aaabcdefg" << endl;
    cout << "aabcdefgh" << endl;
    cout << "abcdefghi" << endl;
  }
  if (N == 10) {
    cout << "aaaaaaaaaa" << endl;
    cout << "aaaaaaaaab" << endl;
    cout << "aaaaaaaabc" << endl;
    cout << "aaaaaaabcd" << endl;
    cout << "aaaaaabcde" << endl;
    cout << "aaaaabcdef" << endl;
    cout << "aaaabcdefg" << endl;
    cout << "aaabcdefgh" << endl;
    cout << "aabcdefghi" << endl;
    cout << "abcdefghij" << endl;
  }
}
