#include <bits/stdc++.h>
char s[5][110], ss[5][5];
int main() {
  int t, n, i, j;
  scanf("%d", &n);
  memset(s, 0x00, sizeof(s));
  if (n == 1) {
    s[0][0] = 'a';
    s[1][0] = 'a';
    s[2][0] = 'b';
    s[3][0] = 'b';
  } else if (n & 1) {
    s[2][0] = 'f';
    s[3][0] = 'f';
    s[0][n - 1] = 'c';
    s[1][n - 1] = 'c';
    for (i = 0; i < n - 1; i += 2) {
      int tp = i / 2;
      s[0][i] = 'a' + (tp & 1);
      s[0][i + 1] = 'a' + (tp & 1);
      s[1][i] = 'd' + (tp & 1);
      s[1][i + 1] = 'd' + (tp & 1);
      s[2][i + 1] = 'g' + (tp & 1);
      s[2][i + 2] = 'g' + (tp & 1);
      s[3][i + 1] = 'i' + (tp & 1);
      s[3][i + 2] = 'i' + (tp & 1);
    }
  } else {
    s[2][0] = 'e';
    s[3][0] = 'e';
    s[2][n - 1] = 'f';
    s[3][n - 1] = 'f';
    for (i = 0; i < n - 1; i += 2) {
      int tp = i / 2;
      s[0][i] = 'a' + (tp & 1);
      s[0][i + 1] = 'a' + (tp & 1);
      s[1][i] = 'c' + (tp & 1);
      s[1][i + 1] = 'c' + (tp & 1);
    }
    for (i = 1; i < n - 1; i += 2) {
      int tp = i / 2;
      s[2][i] = 'g' + (tp & 1);
      s[2][i + 1] = 'g' + (tp & 1);
      s[3][i] = 'i' + (tp & 1);
      s[3][i + 1] = 'i' + (tp & 1);
    }
  }
  for (i = 0; i < 4; ++i) puts(s[i]);
  return 0;
}
