#include <bits/stdc++.h>
using namespace std;
const int64_t INF = (1LL << 60);
const long double pi = acosl((long double)1);
const int64_t mod = 1000000007;
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {1, 0, -1, 0};
const int ddx[8] = {1, 0, -1, -1, -1, 0, 1, 1};
const int ddy[8] = {1, 1, 1, 0, -1, -1, -1, 0};
bool solve() {
  int64_t n;
  cin >> n;
  for (int64_t i = 0; i < (int64_t)((1 << (n - 1))); i++) {
    cout << "a";
    for (int64_t j = 0; j < (int64_t)(n - 1); j++) {
      if ((i >> (j)) & 1)
        cout << "b";
      else
        cout << "a";
    }
    cout << endl;
  }
  return false;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout << fixed;
  cout << setprecision(30);
  return solve();
}
