#include <bits/stdc++.h>
using namespace std;
char output[4][110];
int main() {
  int n;
  while (cin >> n) {
    int i, j;
    if (n == 1)
      cout << 'a' << endl << 'a' << endl << 'b' << endl << 'b' << endl;
    else if (n == 2)
      cout << "aa" << endl << "bb" << endl << "cc" << endl << "dd" << endl;
    else if (n % 2 == 0) {
      int flag = 1;
      for (i = 0; i < n; i += 2) {
        if (flag) {
          flag = 0;
          output[0][i] = output[0][i + 1] = 'a';
        } else {
          flag = 1;
          output[0][i] = output[0][i + 1] = 'b';
        }
      }
      output[1][0] = output[2][0] = output[1][n - 1] = output[2][n - 1] = 'c';
      flag = 1;
      for (i = 1; i < n - 1; i += 2) {
        if (flag) {
          flag = 0;
          output[1][i] = output[1][i + 1] = 'd';
        } else {
          flag = 1;
          output[1][i] = output[1][i + 1] = 'e';
        }
      }
      flag = 1;
      for (i = 1; i < n - 1; i += 2) {
        if (flag) {
          output[2][i] = output[2][i + 1] = 'a';
          flag = 0;
        } else {
          flag = 1;
          output[2][i] = output[2][i + 1] = 'b';
        }
      }
      flag = 1;
      for (i = 0; i < n; i += 2) {
        if (flag) {
          output[3][i] = output[3][i + 1] = 'd';
          flag = 0;
        } else {
          flag = 1;
          output[3][i] = output[3][i + 1] = 'e';
        }
      }
    } else {
      int flag = 1;
      for (i = 0; i < n - 1; i += 2) {
        if (flag) {
          output[0][i] = output[0][i + 1] = 'a';
          flag = 0;
        } else {
          flag = 1;
          output[0][i] = output[0][i + 1] = 'b';
        }
      }
      output[0][n - 1] = output[1][n - 1] = output[2][0] = output[3][0] = 'c';
      flag = 1;
      for (i = 0; i < n - 1; i += 2) {
        if (flag) {
          output[1][i] = output[1][i + 1] = 'd';
          flag = 0;
        } else {
          flag = 1;
          output[1][i] = output[1][i + 1] = 'e';
        }
      }
      flag = 1;
      for (i = 1; i < n; i += 2) {
        if (flag) {
          flag = 0;
          output[2][i] = output[2][i + 1] = 'a';
        } else {
          flag = 1;
          output[2][i] = output[2][i + 1] = 'b';
        }
      }
      flag = 1;
      for (i = 1; i < n; i += 2) {
        if (flag) {
          flag = 0;
          output[3][i] = output[3][i + 1] = 'd';
        } else {
          flag = 1;
          output[3][i] = output[3][i + 1] = 'e';
        }
      }
    }
    if (n > 2) {
      for (i = 0; i < 4; i++) {
        for (j = 0; j < n; j++) cout << output[i][j];
        cout << endl;
      }
    }
  }
  return 0;
}
