#include <bits/stdc++.h>
int faster_in() {
  int r = 0, c;
  for (c = getchar(); c <= 32; c = getchar())
    ;
  if (c == '-') return -faster_in();
  for (; c > 32; r = (r << 1) + (r << 3) + c - '0', c = getchar())
    ;
  return r;
}
using namespace std;
const double PI = acos(-1);
const double EPS = 1e-9;
int main() {
  string txt;
  ios::sync_with_stdio(false);
  cin.tie(0);
  vector<string> v;
  v.push_back("aaaaa");
  v.push_back("aaaab");
  v.push_back("aaaba");
  v.push_back("aaabb");
  v.push_back("aaabc");
  v.push_back("aabaa");
  v.push_back("aabab");
  v.push_back("aabac");
  v.push_back("aabba");
  v.push_back("aabbb");
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    txt = v[i];
    while (txt.size() < n) txt = "a" + txt;
    while (txt.size() > n) txt = txt.substr(1);
    cout << txt << endl;
  }
}
