#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> 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 << "aab" << endl;
    cout << "aba" << endl;
    cout << "abb" << endl;
  } else if (n == 4) {
    cout << "aaaa" << endl;
    cout << "aaab" << endl;
    cout << "aaba" << endl;
    cout << "aabb" << endl;
    cout << "abaa" << endl;
    cout << "abab" << endl;
    cout << "abba" << endl;
    cout << "abbb" << endl;
  } else if (n == 5) {
    cout << "aaaaa" << endl;
    cout << "aaaab" << endl;
    cout << "aaaba" << endl;
    cout << "aabaa" << endl;
    cout << "aabab" << endl;
    cout << "aabba" << endl;
    cout << "aabbb" << endl;
    cout << "abaaa" << endl;
    cout << "abaab" << endl;
    cout << "ababa" << endl;
    cout << "abbaa" << endl;
    cout << "abbab" << endl;
    cout << "abbba" << endl;
    cout << "abbbb" << endl;
  }
  return 0;
}
