#include <bits/stdc++.h>
const int INF = 2e9;
using namespace std;
using Graph = vector<vector<int>>;
int main() {
  int n;
  cin >> n;
  if (n == 1) cout << ("a") << endl;
  if (n == 2) {
    cout << ("aa") << endl;
    cout << ("ab") << endl;
  }
  if (n == 3) {
    cout << ("aaa") << endl;
    cout << ("aab") << endl;
    cout << ("aba") << endl;
    cout << ("abb") << endl;
    cout << ("abc") << endl;
  }
}
