#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1e9 + 7;
const long long int INF = 1e18;
const long long int N = 1e6 + 20;
vector<long long int> g[N];
vector<long long int> vis(N);
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int tc = 1;
  while (tc--) {
    long long int n;
    cin >> n;
    string s;
    for (long long int i = 0; i < n; i++) {
      s += 'a';
    }
    vector<string> v;
    v.push_back(s);
    for (long long int i = 1; i < n; i++) {
      string temp = s;
      temp[i] = 'b';
      v.push_back(temp);
    }
    for (auto i : v) {
      cout << i << '\n';
    }
  }
}
