#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:65777216")
using namespace std;
int a[4][111];
char c[4][111];
int main() {
  int n;
  cin >> n;
  int num = 1;
  for (int i(0); i < (n / 2); i++) {
    a[0][i * 2] = a[0][i * 2 + 1] = num;
    num++;
    a[1][i * 2] = a[1][i * 2 + 1] = num;
    num++;
  }
  if (n % 2) {
    a[0][n - 1] = a[1][n - 1] = num;
    num++;
  }
  for (int i(0); i < ((n - 1) / 2); i++) {
    a[2][1 + i * 2] = a[2][2 + i * 2] = num;
    num++;
    a[3][1 + i * 2] = a[3][2 + i * 2] = num;
    num++;
  }
  a[2][0] = a[3][0] = num;
  num++;
  if (n % 2 == 0) {
    a[2][n - 1] = a[3][n - 1] = num;
    num++;
  }
  for (int i(0); i < (4); i++)
    for (int j(0); j < (n + 1); j++) c[i][j] = 0;
  for (int i(0); i < (4); i++)
    for (int j(0); j < (n); j++)
      if (!c[i][j]) {
        int mask = 0;
        for (int dx(-1); dx < (3); dx++)
          for (int dy(-1); dy < (3); dy++) {
            int x = i + dx;
            int y = j + dy;
            if (x >= 0 && x < 4 && y >= 0 && y < n && c[x][y])
              mask |= (1 << (c[x][y] - 'a'));
          }
        c[i][j] = 'a';
        while (mask & (1 << (c[i][j] - 'a'))) c[i][j]++;
        if (a[i][j + 1] == a[i][j])
          c[i][j + 1] = c[i][j];
        else
          c[i + 1][j] = c[i][j];
      }
  for (int i(0); i < (4); i++) cout << c[i] << endl;
  return 0;
}
