#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  int n;
  cin >> n;
  int k = pow(2, n - 1), t, z, s;
  vector<char> v[k + 1];
  for (int i = 1; i <= k; i++) v[i].push_back('a');
  t = k;
  z = 1;
  s = 1;
  for (int i = 2; i <= n; i++) {
    t = t / 2;
    s = 1;
    for (int m = 1; m <= z; m++) {
      for (int j = 1; j <= t; j++) {
        v[s].push_back('a');
        s++;
      }
      for (int j = 1; j <= t; j++) {
        v[s].push_back('b');
        s++;
      }
    }
    z = 2 * z;
  }
  for (int i = 1; i <= k; i++) {
    for (int j = 0; j < n; j++) cout << v[i][j];
    cout << endl;
  }
}
