#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  double i, n, t, p = INT_MAX, j = 0, x, a = 0, b, l = 0, r = 0, y;
  string s, m;
  cin >> n;
  for (j = 0; j < n; j++) {
    for (i = 0; i < n; i++) {
      if (j == n - i) {
        cout << 'b';
      } else {
        cout << 'a';
      }
    }
    cout << endl;
  }
  return EXIT_SUCCESS;
}
