#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 << "aba" << endl;
  }
  if (n == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aaba" << endl;
    cout << "aabb" << endl;
  }
  if (n == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaaba" << endl;
    cout << "aaabb" << endl;
    cout << "aaabc" << endl;
  }
  if (n == 6) {
    cout << "aaaaaa" << endl;
    cout << "aaaaab" << endl;
    cout << "aaaaba" << endl;
    cout << "aaaabb" << endl;
    cout << "aaaabc" << endl;
    cout << "aaabaa" << endl;
  }
  if (n == 7) {
    cout << "aaaaaaa" << endl;
    cout << "aaaaaab" << endl;
    cout << "aaaaaba" << endl;
    cout << "aaaaabb" << endl;
    cout << "aaaaabc" << endl;
    cout << "aaaabaa" << endl;
    cout << "aaaabab" << endl;
  }
  if (n == 8) {
    cout << "aaaaaaaa" << endl;
    cout << "aaaaaaab" << endl;
    cout << "aaaaaaba" << endl;
    cout << "aaaaaabb" << endl;
    cout << "aaaaaabc" << endl;
    cout << "aaaaabaa" << endl;
    cout << "aaaaabab" << endl;
    cout << "aaaaabba" << endl;
  }
  if (n == 9) {
    cout << "aaaaaaaaa" << endl;
    cout << "aaaaaaaab" << endl;
    cout << "aaaaaaaba" << endl;
    cout << "aaaaaaabb" << endl;
    cout << "aaaaaaabc" << endl;
    cout << "aaaaaabaa" << endl;
    cout << "aaaaaabab" << endl;
    cout << "aaaaaabba" << endl;
    cout << "aaaaaabbb" << endl;
  }
  if (n == 10) {
    cout << "aaaaaaaaaa" << endl;
    cout << "aaaaaaaaab" << endl;
    cout << "aaaaaaaaba" << endl;
    cout << "aaaaaaaabb" << endl;
    cout << "aaaaaaaabc" << endl;
    cout << "aaaaaaabaa" << endl;
    cout << "aaaaaaabab" << endl;
    cout << "aaaaaaabba" << endl;
    cout << "aaaaaaabbb" << endl;
    cout << "aaaaaaabbc" << endl;
  }
  return 0;
}
