#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    string s = "";
    for (int j = 0; j <= i; j++) s += (char)('a' + j);
    string a = "";
    while (a.size() < n) a += s[a.size() % s.size()];
    cout << a << "\n";
  }
}
