#include <bits/stdc++.h>
using namespace std;
const long long N = 3e5 + 100;
const long long MOD = 1e9 + 7;
const long long INF = 1e16;
void solve() {
  long long n;
  cin >> n;
  if (n == 1) {
    cout << 'a' << "\n";
    return;
  }
  for (int i = 1; i <= n; i++) cout << 'a';
  cout << "\n";
  for (int i = 2; i <= n; i++) {
    for (int j = 0; j < (i - 1); j++) {
      cout << 'a';
    }
    for (int j = i - 1; j < n; j++) cout << 'b';
    cout << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
