#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  string AL = "abcdefghij";
  string S;
  for (int i = 0; i < N; i++) {
    S.push_back('a');
  }
  while (1) {
    for (int i = 1; i < N; i++) {
      if (S[i - 1] == S[i] && (S[i] != S[i + 1] || i == N - 1)) {
        for (int j = 0; j < 10; j++) {
          if (S[i] == AL[j]) {
            S[i] = AL[j + 1];
            break;
          }
        }
        break;
      }
    }
    cout << S << endl;
    if (S == "a" || S == "ab" || S == "abc" || S == "abcd" || S == "abcde" ||
        S == "abcdef" || S == "abcdefg" || S == "abcdefgh" ||
        S == "abcdefghi" || S == "abcdefghij") {
      return 0;
    }
  }
}
