#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
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 << "aac" << endl;
  }
  if (N == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aaac" << endl;
    cout << "aaad" << endl;
  }
  if (N == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaaac" << endl;
    cout << "aaaad" << endl;
    cout << "aaaae" << endl;
  }
  if (N == 6) {
    cout << "aaaaaa" << endl;
    cout << "aaaaab" << endl;
    cout << "aaaaac" << endl;
    cout << "aaaaad" << endl;
    cout << "aaaaae" << endl;
    cout << "aaaaaf" << endl;
  }
  if (N == 7) {
    cout << "aaaaaaa" << endl;
    cout << "aaaaaab" << endl;
    cout << "aaaaaac" << endl;
    cout << "aaaaaad" << endl;
    cout << "aaaaaae" << endl;
    cout << "aaaaaaf" << endl;
    cout << "aaaaaag" << endl;
  }
  if (N == 8) {
    cout << "aaaaaaaa" << endl;
    cout << "aaaaaaab" << endl;
    cout << "aaaaaaac" << endl;
    cout << "aaaaaaad" << endl;
    cout << "aaaaaaae" << endl;
    cout << "aaaaaaaf" << endl;
    cout << "aaaaaaag" << endl;
    cout << "aaaaaaah" << endl;
  }
  if (N == 9) {
    cout << "aaaaaaaaa" << endl;
    cout << "aaaaaaaab" << endl;
    cout << "aaaaaaaac" << endl;
    cout << "aaaaaaaad" << endl;
    cout << "aaaaaaaae" << endl;
    cout << "aaaaaaaaf" << endl;
    cout << "aaaaaaaag" << endl;
    cout << "aaaaaaaah" << endl;
    cout << "aaaaaaaai" << endl;
  }
  if (N == 10) {
    cout << "aaaaaaaaaa" << endl;
    cout << "aaaaaaaaab" << endl;
    cout << "aaaaaaaaac" << endl;
    cout << "aaaaaaaaad" << endl;
    cout << "aaaaaaaaae" << endl;
    cout << "aaaaaaaaaf" << endl;
    cout << "aaaaaaaaag" << endl;
    cout << "aaaaaaaaah" << endl;
    cout << "aaaaaaaaai" << endl;
    cout << "aaaaaaaaaj" << endl;
  }
}
