#include <bits/stdc++.h>
#pragma GCC optimize("O3")
long long int gcd(long long int a, long long int b) {
  return (b ? gcd(b, a % b) : a);
}
long long int P(long long int B, long long int power, long long int modulo) {
  long long int ans = 1LL;
  while (power > 0LL) {
    if (power % 2LL == 1LL) {
      ans = (ans * B) % modulo;
    }
    B = (B * B) % modulo;
    power /= 2LL;
  }
  return ans;
}
bool isPrime(long long int n) {
  if (n <= 1LL) {
    return false;
  }
  if (n <= 3LL) {
    return true;
  }
  if (n % 2 == 0LL || n % 3 == 0LL) {
    return false;
  }
  for (long long int i = 5LL; (i * i) <= n; i += 6LL) {
    if (n % i == 0LL || n % (i + 2LL) == 0LL) {
      return false;
    }
  }
  return true;
}
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
bool sortbysecll(const pair<long long int, long long int> &a,
                 const pair<long long int, long long int> &b) {
  return (a.second < b.second);
}
long long int modinv(long long int x, long long int y, long long int modulo) {
  return ((x % modulo) * (P(y, modulo - 2LL, modulo) % modulo)) % modulo;
}
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a"
         << "\n";
  }
  if (n == 2) {
    cout << "aa"
         << "\n";
    cout << "ab"
         << "\n";
  }
  if (n == 3) {
    cout << "aaa"
         << "\n";
    cout << "aab"
         << "\n";
    cout << "abb"
         << "\n";
    cout << "abc"
         << "\n";
  }
  if (n == 4) {
    cout << "aaaa"
         << "\n";
    cout << "aaab"
         << "\n";
    cout << "aabb"
         << "\n";
    cout << "aabc"
         << "\n";
    cout << "abbb"
         << "\n";
    cout << "abbc"
         << "\n";
    cout << "abcd"
         << "\n";
  }
  if (n == 5) {
    cout << "aaaaa"
         << "\n";
    cout << "aaaab"
         << "\n";
    cout << "aaabb"
         << "\n";
    cout << "aaabc"
         << "\n";
    cout << "aabbb"
         << "\n";
    cout << "aabbc"
         << "\n";
    cout << "aabcd"
         << "\n";
    cout << "abbbb"
         << "\n";
    cout << "abbbc"
         << "\n";
    cout << "abbcd"
         << "\n";
    cout << "abcde"
         << "\n";
  }
  if (n == 6) {
    cout << "aaaaaa"
         << "\n";
    cout << "aaaaab"
         << "\n";
    cout << "aaaabb"
         << "\n";
    cout << "aaaabc"
         << "\n";
    cout << "aaabbb"
         << "\n";
    cout << "aaabbc"
         << "\n";
    cout << "aaabcd"
         << "\n";
    cout << "aabbbb"
         << "\n";
    cout << "aabbbc"
         << "\n";
    cout << "aabbcd"
         << "\n";
    cout << "aabcde"
         << "\n";
    cout << "abbbbb"
         << "\n";
    cout << "abbbbc"
         << "\n";
    cout << "abbbcd"
         << "\n";
    cout << "abbcde"
         << "\n";
    cout << "abcdef"
         << "\n";
  }
  if (n == 7) {
    cout << "aaaaaaa"
         << "\n";
    cout << "aaaaaab"
         << "\n";
    cout << "aaaaabb"
         << "\n";
    cout << "aaaaabc"
         << "\n";
    cout << "aaaabbb"
         << "\n";
    cout << "aaaabbc"
         << "\n";
    cout << "aaaabcd"
         << "\n";
    cout << "aaabbbb"
         << "\n";
    cout << "aaabbbc"
         << "\n";
    cout << "aaabbcd"
         << "\n";
    cout << "aaabcde"
         << "\n";
    cout << "aabbbbb"
         << "\n";
    cout << "aabbbbc"
         << "\n";
    cout << "aabbbcd"
         << "\n";
    cout << "aabbcde"
         << "\n";
    cout << "aabcdef"
         << "\n";
    cout << "abbbbbb"
         << "\n";
    cout << "abbbbbc"
         << "\n";
    cout << "abbbbcd"
         << "\n";
    cout << "abbbcde"
         << "\n";
    cout << "abbcdef"
         << "\n";
    cout << "abcdefg"
         << "\n";
  }
  if (n == 8) {
    cout << "aaaaaaaa"
         << "\n";
    cout << "aaaaaaab"
         << "\n";
    cout << "aaaaaabb"
         << "\n";
    cout << "aaaaaabc"
         << "\n";
    cout << "aaaaabbb"
         << "\n";
    cout << "aaaaabbc"
         << "\n";
    cout << "aaaaabcd"
         << "\n";
    cout << "aaaabbbb"
         << "\n";
    cout << "aaaabbbc"
         << "\n";
    cout << "aaaabbcd"
         << "\n";
    cout << "aaaabcde"
         << "\n";
    cout << "aaabbbbb"
         << "\n";
    cout << "aaabbbbc"
         << "\n";
    cout << "aaabbbcd"
         << "\n";
    cout << "aaabbcde"
         << "\n";
    cout << "aaabcdef"
         << "\n";
    cout << "aabbbbbb"
         << "\n";
    cout << "aabbbbbc"
         << "\n";
    cout << "aabbbbcd"
         << "\n";
    cout << "aabbbcde"
         << "\n";
    cout << "aabbcdef"
         << "\n";
    cout << "aabcdefg"
         << "\n";
    cout << "abbbbbbb"
         << "\n";
    cout << "abbbbbbc"
         << "\n";
    cout << "abbbbbcd"
         << "\n";
    cout << "abbbbcde"
         << "\n";
    cout << "abbbcdef"
         << "\n";
    cout << "abbcdefg"
         << "\n";
    cout << "abcdefgh"
         << "\n";
  }
  if (n == 9) {
    cout << "aaaaaaaaa"
         << "\n";
    cout << "aaaaaaaab"
         << "\n";
    cout << "aaaaaaabb"
         << "\n";
    cout << "aaaaaaabc"
         << "\n";
    cout << "aaaaaabbb"
         << "\n";
    cout << "aaaaaabbc"
         << "\n";
    cout << "aaaaaabcd"
         << "\n";
    cout << "aaaaabbbb"
         << "\n";
    cout << "aaaaabbbc"
         << "\n";
    cout << "aaaaabbcd"
         << "\n";
    cout << "aaaaabcde"
         << "\n";
    cout << "aaaabbbbb"
         << "\n";
    cout << "aaaabbbbc"
         << "\n";
    cout << "aaaabbbcd"
         << "\n";
    cout << "aaaabbcde"
         << "\n";
    cout << "aaaabcdef"
         << "\n";
    cout << "aaabbbbbb"
         << "\n";
    cout << "aaabbbbbc"
         << "\n";
    cout << "aaabbbbcd"
         << "\n";
    cout << "aaabbbcde"
         << "\n";
    cout << "aaabbcdef"
         << "\n";
    cout << "aaabcdefg"
         << "\n";
    cout << "aabbbbbbb"
         << "\n";
    cout << "aabbbbbbc"
         << "\n";
    cout << "aabbbbbcd"
         << "\n";
    cout << "aabbbbcde"
         << "\n";
    cout << "aabbbcdef"
         << "\n";
    cout << "aabbcdefg"
         << "\n";
    cout << "aabcdefgh"
         << "\n";
    cout << "abbbbbbbb"
         << "\n";
    cout << "abbbbbbbc"
         << "\n";
    cout << "abbbbbbcd"
         << "\n";
    cout << "abbbbbcde"
         << "\n";
    cout << "abbbbcdef"
         << "\n";
    cout << "abbbcdefg"
         << "\n";
    cout << "abbcdefgh"
         << "\n";
    cout << "abcdefghi"
         << "\n";
  }
  if (n == 10) {
    cout << "aaaaaaaaaa"
         << "\n";
    cout << "aaaaaaaaab"
         << "\n";
    cout << "aaaaaaaabb"
         << "\n";
    cout << "aaaaaaaabc"
         << "\n";
    cout << "aaaaaaabbb"
         << "\n";
    cout << "aaaaaaabbc"
         << "\n";
    cout << "aaaaaaabcd"
         << "\n";
    cout << "aaaaaabbbb"
         << "\n";
    cout << "aaaaaabbbc"
         << "\n";
    cout << "aaaaaabbcd"
         << "\n";
    cout << "aaaaaabcde"
         << "\n";
    cout << "aaaaabbbbb"
         << "\n";
    cout << "aaaaabbbbc"
         << "\n";
    cout << "aaaaabbbcd"
         << "\n";
    cout << "aaaaabbcde"
         << "\n";
    cout << "aaaaabcdef"
         << "\n";
    cout << "aaaabbbbbb"
         << "\n";
    cout << "aaaabbbbbc"
         << "\n";
    cout << "aaaabbbbcd"
         << "\n";
    cout << "aaaabbbcde"
         << "\n";
    cout << "aaaabbcdef"
         << "\n";
    cout << "aaaabcdefg"
         << "\n";
    cout << "aaabbbbbbb"
         << "\n";
    cout << "aaabbbbbbc"
         << "\n";
    cout << "aaabbbbbcd"
         << "\n";
    cout << "aaabbbbcde"
         << "\n";
    cout << "aaabbbcdef"
         << "\n";
    cout << "aaabbcdefg"
         << "\n";
    cout << "aaabcdefgh"
         << "\n";
    cout << "aabbbbbbbb"
         << "\n";
    cout << "aabbbbbbbc"
         << "\n";
    cout << "aabbbbbbcd"
         << "\n";
    cout << "aabbbbbcde"
         << "\n";
    cout << "aabbbbcdef"
         << "\n";
    cout << "aabbbcdefg"
         << "\n";
    cout << "aabbcdefgh"
         << "\n";
    cout << "aabcdefghi"
         << "\n";
    cout << "abbbbbbbbb"
         << "\n";
    cout << "abbbbbbbbc"
         << "\n";
    cout << "abbbbbbbcd"
         << "\n";
    cout << "abbbbbbcde"
         << "\n";
    cout << "abbbbbcdef"
         << "\n";
    cout << "abbbbcdefg"
         << "\n";
    cout << "abbbcdefgh"
         << "\n";
    cout << "abbcdefghi"
         << "\n";
    cout << "abcdefghij"
         << "\n";
  }
  return 0;
}
