#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
long long N;
int main() {
  cin >> N;
  if (N == 1) {
    cout << 'a' << endl;
  } else if (N == 2) {
    cout << "aa" << endl;
    cout << "ab" << endl;
  } else if (N == 3) {
    cout << "aaa" << endl;
    cout << "aab" << endl;
    cout << "abc" << endl;
  }
}
