#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
constexpr ll LLINF{1001002003004005006};
int main() {
  int N;
  cin >> N;
  if (N == 1) {
    cout << "a\n";
    return 0;
  } else if (N == 2) {
    cout << "aa\nab\n";
    return 0;
  } else if (N == 3) {
    cout << "aaa\n";
    cout << "aab\n";
    cout << "abc\n";
  } else {
  }
}
