#include <bits/stdc++.h>
using namespace std;
bool compare(long long x, long long y) { return x > y; }
long long isprime(long long n) {
  if (n == 1)
    return 0;
  else if (n == 2)
    return 1;
  else {
    for (long long i = 2; i <= sqrt(n); i++) {
      if (n % i == 0) return 0;
    }
    return 1;
  }
}
vector<long long> get_prime_less(long long n) {
  long long array[n];
  vector<long long> factor;
  for (long long i = 1; i <= n; i++) array[i] = i;
  long long prime[n];
  for (long long i = 0; i < n; i++) prime[i] = 1;
  for (long long i = 2; i <= sqrt(n); i++) {
    if (prime[i] == 1) {
      for (long long j = i * i; j <= n; j = j + i) prime[j] = 0;
      factor.push_back(i);
    }
  }
  return factor;
}
vector<long long> retain_index(long long arr[], long long n) {
  vector<pair<long long, long long> > vp;
  for (long long i = 0; i < n; ++i) {
    vp.push_back(make_pair(arr[i], i));
  }
  sort(vp.begin(), vp.end());
  vector<long long> retain;
  for (long long i = 0; i < vp.size(); i++) {
    long long a = vp[i].second;
    retain.push_back(a);
  }
  return retain;
}
long long power(long long x, long long y) {
  if (y == 0)
    return 1;
  else if (y % 2 == 0)
    return power(x, y / 2) * power(x, y / 2);
  else
    return x * power(x, y / 2) * power(x, y / 2);
}
int main() {
  long long n;
  cin >> n;
  string s1[2] = {"aa", "ab"};
  string s2[5] = {"aaa", "aab", "aba", "abb", "baa"};
  string s3[8] = {"aaaa", "aaab", "aaba", "aabb",
                  "abaa", "abab", "abba", "abbb"};
  string s4[10] = {"aaaaa", "aaaab", "aaaba", "aaabb", "aabaa",
                   "aabab", "aabba", "abaaa", "abaab", "ababb"};
  if (n == 1)
    cout << "a";
  else if (n == 2) {
    for (long long i = 0; i < n; i++) {
      cout << s1[i] << endl;
    }
  } else if (n >= 3 && n <= 5) {
    for (long long i = 0; i < n; i++) {
      cout << s2[i] << endl;
    }
  } else if (n >= 6 && n <= 8) {
    for (long long i = 0; i < n; i++) {
      cout << s3[i] << endl;
    }
  } else if (n >= 9 && n <= 10) {
    for (long long i = 0; i < n; i++) {
      cout << s4[i] << endl;
    }
  }
}
