#include <bits/stdc++.h>
using namespace std;
int n;
char res[6][200];
int main() {
  for (int i = 0; i < 6; i++) {
    for (int j = 0; j < 200; j++) {
      res[i][j] = '.';
    }
  }
  cin >> n;
  if (n % 2 == 0) {
    int x = 'a';
    for (int i = 1; i <= n / 2; i++) {
      if (x > 'z') x = 'a';
      res[1][2 * i - 1] = res[1][2 * i] = res[4][2 * i - 1] = res[4][2 * i] = x;
      x++;
    }
    x += 5;
    if (x >= 'z') x = 'a';
    if (n == 2) {
      res[2][1] = res[2][2] = 't';
      res[3][1] = res[3][2] = 'r';
    } else {
      x = 'a';
      while (res[1][1] == x || res[3][1] == x) x++;
      res[2][1] = res[3][1] = x;
      x = 'a';
      while (res[1][n] == x || res[4][n] == x) x++;
      res[2][n] = res[3][n] = x;
      for (int i = 2; i < n; i += 2) {
        x = 'a';
        while (res[1][i] == x || res[1][i + 1] == x || res[3][i] == x ||
               res[3][i + 1] == x || res[2][i - 1] == x || res[2][i + 2] == x)
          x++;
        res[2][i] = res[2][i + 1] = x;
        x = 'a';
        while (res[2][i] == x || res[2][i + 1] == x || res[4][i] == x ||
               res[4][i + 1] == x || res[3][i - 1] == x || res[3][i + 2] == x)
          x++;
        res[3][i] = res[3][i + 1] = x;
      }
    }
  } else {
    if (n == 1) {
      res[1][1] = res[2][1] = 'a';
      res[3][1] = res[4][1] = 'b';
      for (int i = 1; i <= 4; i++) {
        for (int j = 1; j <= n; j++) {
          cout << res[i][j];
        }
        cout << endl;
      }
      return 0;
    }
    int x = 'a';
    for (int i = 1; i <= n / 2; i++) {
      if (x >= 'z') x = 'a';
      res[1][2 * i - 1] = res[1][2 * i] = x;
      res[2][2 * i - 1] = res[2][2 * i] = x + 1;
      x += 2;
    }
    if (x >= 'z') x = 'a';
    res[1][n] = res[2][n] = x;
    for (int i = n; i > 1; i -= 2) {
      x = 'a';
      while (res[2][i] == x || res[2][i - 1] == x || res[3][i + 1] == x ||
             res[3][i + 2] == x)
        x++;
      res[3][i] = res[3][i - 1] = x;
      x = 'a';
      while (res[3][i] == x || res[3][i - 1] == x || res[4][i + 1] == x ||
             res[4][i + 2] == x)
        x++;
      res[4][i] = res[4][i - 1] = x;
    }
    x = 'a';
    while (res[2][1] == x || res[3][2] == x || res[4][2] == x) x++;
    res[3][1] = res[4][1] = x;
  }
  for (int i = 1; i <= 4; i++) {
    for (int j = 1; j <= n; j++) {
      cout << res[i][j];
    }
    cout << endl;
  }
}
