#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t = n - 1, k = 97;
  char a[n];
  for (int i = 0; i < t; i++) {
    a[i] = 'a';
  }
  for (int i = 1; i <= n; i++) {
    a[n - 1] = (char)k;
    k = k + 1;
    for (int j = 0; j < n; j++) {
      cout << a[j];
    }
    cout << endl;
  }
  return 0;
}
