#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const int N = 1e5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int x;
  cin >> x;
  if (x == 1) {
    cout << "a";
    return 0;
  }
  if (x == 2) {
    cout << "aa" << '\n';
    cout << "ab" << '\n';
    return 0;
  } else if (x == 3) {
    cout << "aaa" << '\n';
    cout << "aba" << '\n';
    cout << "baa" << '\n';
    return 0;
  } else if (x == 4) {
    cout << "aaaa" << '\n';
    cout << "abaa" << '\n';
    cout << "abca" << '\n';
    cout << "abcd" << '\n';
    return 0;
  } else if (x == 5) {
    cout << "aaaaa" << '\n';
    cout << "abaaa" << '\n';
    cout << "abcaa" << '\n';
    cout << "abcda" << '\n';
    cout << "abcde" << '\n';
    return 0;
  }
  for (int i = 0; i < x; i++) cout << "a";
  cout << '\n';
  int c = x;
  while (c > 0) {
    for (int i = 1; i < c; i++) {
      cout << 'a';
    }
    cout << 'b';
    for (int i = c; i < x; i++) cout << 'a';
    cout << '\n';
    c -= 2;
  }
  return 0;
}
