#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <iomanip>
#include <math.h> 
#include <stack>
#include <queue>
#include <bitset>
#include <cstdlib>
#include <tuple>
#include <cctype>

using namespace std;


int main() {
	int i, j, k;
	int n;
	//vector<string>s(100000, "aaaaaaaaaaaaaaaaaaaa");
	int ke[20] = { 0 };

	cin >> n;

	int iti = 1, cnt = 0, cnt2 = 0, amari, keta = 0;



	for (i = 1; i <= n; i++) {
		keta = 0;
		for (j = 1; j <= i; j++) {
			ke[keta]++;
			
			bool flag = false;

			while (ke[keta]==25)
			{
				ke[keta + 1]++;
				ke[keta] = 0;
				keta++;
				flag = true;
			}
			
			if (flag == true) {
				keta = 0;
			}
		}

		cout << "a";
		for (int j = 0; j < 7; j++) {
			//cout << setw(3) << ke[i] << "  ";
			cout << (char)( 97 + ke[j]) ;
		}
		if (i == n) {
			cout << "n";
		}
		else {
			cout << "a";
		}
		cout << endl;
		for (int i = 0; i < 7; i++) {
			ke[i] = 0;
		}
	}

	return 0;
}