#include <bits/stdc++.h>
using namespace std;
int main() {
  int i;
  cin >> i;
  if (i == 3) {
    cout << "aaa" << endl;
    cout << "aab" << endl;
    cout << "aba" << endl;
    cout << "abb" << endl;
    cout << "abc" << endl;
  }
}
