#include <bits/stdc++.h>
const int maxn = 2e5 + 9;
const double pi = acos(-1);
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const double ep = 1e-7;
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    for (int j = 1; j <= n - i; j++) printf("a");
    for (int j = n - i + 1; j <= n; j++) printf("b");
    puts("");
  }
}
