#include <bits/stdc++.h>
using namespace std;
bool checksym(vector<vector<char> >& a, int i, int j) {
  bool res = true;
  if (i > 0) res = res && (a[i][j] != a[i - 1][j]);
  if (j > 0) res = res && (a[i][j] != a[i][j - 1]);
  if (i < a.size() - 1) res = res && (a[i][j] != a[i + 1][j]);
  if (j < a[i].size() - 1) res = res && (a[i][j] != a[i][j + 1]);
  return res;
}
void place_line(vector<vector<char> >& a, int i, int s = 0) {
  for (int j = s; j < a[i].size(); j++)
    if (a[i][j] != 0)
      continue;
    else {
      a[i][j] = 'a';
      while (!checksym(a, i, j)) a[i][j]++;
      if (j < a[i].size() - 1 && a[i][j + 1] == 0) {
        a[i][j + 1] = a[i][j];
        a[i][j] = 0;
        while (1) {
          if (checksym(a, i, j + 1)) {
            a[i][j] = a[i][j + 1];
            a[i][j + 1] = 0;
            bool cr = checksym(a, i, j);
            a[i][j + 1] = a[i][j];
            a[i][j] = 0;
            if (cr) break;
          }
          a[i][j + 1]++;
        }
        a[i][j] = a[i][j + 1];
      } else
        a[i + 1][j] = a[i][j];
    }
}
int main() {
  int n;
  cin >> n;
  vector<vector<char> > a(4, vector<char>(n, 0));
  if (n % 2 == 0)
    for (int i = 0; i < 4; i++) {
      if (i != 1)
        place_line(a, i);
      else {
        char rc;
        for (rc = 'a'; rc <= 'z'; rc++) {
          a[i][0] = rc;
          if (checksym(a, i, 0)) break;
        }
        a[i + 1][0] = a[i][0];
        place_line(a, i);
      }
    }
  else {
    place_line(a, 0, 0);
    place_line(a, 2, 1);
    for (int i = 0; i < 4; i++) place_line(a, i);
  }
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < n; ++j) {
      cout << a[i][j];
    }
    cout << '\n';
  }
  return 0;
}
