#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    if(n==3)
    cout << "aaa"<<endl;
    cout << "aab" <<endl;
    cout << "aba" << endl;
    cout << "abb" << endl;
    cout << "abc" << endl;
    return 0;
