#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[6][105], obr;
  int i, j, n;
  cin >> n;
  if (n == 1) {
    cout << 'a' << endl << 'a' << endl << 'b' << endl << 'b';
  } else {
    obr = 'b';
    if (n % 2 == 0) {
      for (i = 0; i < n / 2; i++) {
        a[1][2 * i] = obr;
        a[1][2 * i + 1] = obr;
        obr++;
        if (obr >= 'y') {
          obr = 'b';
        }
      }
      for (i = 0; i < n / 2; i++) {
        if ((a[1][2 * i] == obr) || (a[1][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        a[2][2 * i] = obr;
        a[2][2 * i + 1] = obr;
        obr++;
      }
      for (i = 0; i < (n / 2) - 1; i++) {
        if ((a[2][2 * i] == obr) || (a[2][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        a[3][2 * i + 1] = obr;
        a[3][2 * i + 2] = obr;
        obr++;
      }
      for (i = 0; i < (n / 2) - 1; i++) {
        if ((a[3][2 * i] == obr) || (a[3][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        a[4][2 * i + 1] = obr;
        a[4][2 * i + 2] = obr;
        obr++;
      }
      a[3][0] = 'a';
      a[4][0] = 'a';
      a[3][n - 1] = 'z';
      a[4][n - 1] = 'z';
    } else {
      for (i = 0; i < n / 2; i++) {
        if (obr >= 'y') {
          obr = 'b';
        }
        a[1][2 * i] = obr;
        a[1][2 * i + 1] = obr;
        obr++;
      }
      for (i = 0; i < n / 2; i++) {
        if ((a[1][2 * i] == obr) || (a[1][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        if ((a[1][2 * i] == obr) || (a[1][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        a[2][2 * i] = obr;
        a[2][2 * i + 1] = obr;
        obr++;
      }
      for (i = 0; i < n / 2; i++) {
        if ((a[2][2 * i] == obr) || (a[2][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        a[3][2 * i + 1] = obr;
        a[3][2 * i + 2] = obr;
        obr++;
      }
      for (i = 0; i < n / 2; i++) {
        if ((a[3][2 * i] == obr) || (a[3][2 * i + 2] == obr)) {
          obr = obr + 2;
        }
        if (obr >= 'y') {
          obr = 'b';
        }
        a[4][2 * i + 1] = obr;
        a[4][2 * i + 2] = obr;
        obr++;
      }
      a[1][n - 1] = 'a';
      a[2][n - 1] = 'a';
      a[3][0] = 'z';
      a[4][0] = 'z';
    }
    for (i = 1; i <= 4; i++) {
      for (j = 0; j < n; j++) {
        cout << a[i][j];
      }
      cout << endl;
    }
  }
  cin.get();
  cin.get();
}
