#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10;
const int mod = 1e9 + 7;
const double pi = 3.1415926535;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int g = (1 << (n - 1));
  for (int i = 0; i < g; i++) {
    cout << "a";
    for (int x = 0; x < n - 1; x++) {
      if ((i >> x) & 1)
        cout << "b";
      else
        cout << "a";
    }
    cout << '\n';
  }
}
