#include <bits/stdc++.h>
using namespace std;
using namespace std;
const int MAXN = 2e5 + 7;
int main() {
  int n;
  cin >> n;
  int k = n + 1;
  for (int i = 1; i <= n; i++) {
    char s = 'b';
    char b = 'a';
    for (int j = 1; j <= n; j++) {
      if (j != k)
        cout << b;
      else if (j == k)
        cout << s;
    }
    k--;
    cout << endl;
  }
}
