#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
const int oo = 1e9 + 5;
int n;
string s;
void rec(int pos) {
  if (pos == n) {
    if (s[0] == 'b') exit(0);
    cout << s << '\n';
    return;
  }
  s.push_back('a');
  rec(pos + 1);
  s.pop_back();
  s.push_back('b');
  rec(pos + 1);
  s.pop_back();
}
void solve() {
  cin >> n;
  rec(0);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tt = 1;
  while (tt--) {
    solve();
  }
  return 0;
}
