#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
void solve(void) {
  int N;
  cin >> N;
  int A = pow(2, N - 1);
  if (N == 1) {
    cout << "a" << endl;
    return;
  }
  for (int i = 0; i < (A); i++) {
    bitset<10> S(i);
    for (int j = N - 1; j >= 0; j--) {
      if (S.test(j) == 0) {
        cout << 'a';
      } else {
        cout << 'b';
      }
    }
    cout << endl;
  }
  return;
}
int main(int argc, const char* argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}
