#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string ans[1024];
  if (n == 1) {
    cout << "a" << endl;
    return 0;
  }
  vector<int> temp(15);
  temp[2] = 1;
  for (int i = 3; i <= 13; i++) {
    temp[i] = temp[i - 1] * 2;
  }
  int save = temp[n];
  for (int j = 0; j < (int)(n - 1); j++) {
    int count = 0;
    bool z = true;
    for (int i = 0; i < (int)(temp[n + 1]); i++) {
      if (z) {
        ans[i] += 'a';
        count++;
        if (count == save) {
          count = 0;
          z = false;
        }
      } else {
        ans[i] += 'b';
        count++;
        if (count == save) {
          count = 0;
          z = true;
        }
      }
    }
    save /= 2;
  }
  int r;
  if (n == 2) r = 2;
  if (n == 3) r = 4;
  if (n == 4) r = 8;
  if (n == 5) r = 16;
  if (n == 6) r = 32;
  if (n == 7) r = 64;
  if (n == 8) r = 128;
  if (n == 9) r = 256;
  if (n == 10) r = 512;
  for (int i = 0; i < (int)(r); i++) {
    cout << 'a' + ans[i] << endl;
  }
}
