#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int LARGE_INT = 1e9 + 100;
const int INF = 2e9 + 100;
const long long INF_LL = (long long)INF * 300 * 300;
const int MOD = 1e9 + 7;
long long modpow(long long a, long long n) {
  long long res = 1;
  while (n > 0) {
    if (n & 1) res = res * a % MOD;
    a = a * a % MOD;
    n >>= 1;
  }
  return res;
}
long long modinv(long long a) {
  long long b = MOD, u = 1, v = 0;
  while (b) {
    long long t = a / b;
    a -= t * b;
    swap(a, b);
    u -= t * v;
    swap(u, v);
  }
  u %= MOD;
  if (u < 0) u += MOD;
  return u;
}
long long moddev(long long a, long long b) { return a * modinv(b) % MOD; }
void Main() {
  int n;
  cin >> n;
  int max = modpow(2, n - 1);
  for (int i = (0); i < (max); ++i) {
    int t = i;
    vector<int> result(n);
    for (int j = 0; t > 0; t /= 2, j++) {
      result[j] = t % 2;
    }
    for (int j = n - 1; j >= 0; j--) {
      if (result[j] == 0) {
        cout << "a";
      } else {
        cout << "b";
      }
    }
    cout << endl;
  }
  return;
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  Main();
  return 0;
}
