#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int bit = 0; bit < (1 << n) / 2; bit++) {
    for (int i = n - 1; i >= 0; i--) {
      if (bit & (1 << i))
        cout << "b";
      else
        cout << "a";
    }
    cout << endl;
  }
}
