#include <bits/stdc++.h>
char out[10][1000];
int main() {
  int n, i, j, k;
  while (scanf("%d", &n) != EOF) {
    if (n == 1) {
      printf("a\na\nb\nb\n");
      continue;
    }
    if (n == 2) {
      printf("aa\nbb\ncc\ndd\n");
      continue;
    }
    if (n % 2) {
      out[0][0] = out[1][0] = 'z';
      for (i = 0; i < n / 2; i++) {
        out[0][i * 2 + 1] = out[0][i * 2 + 2] = 'a' + (i * 2) % 26;
        out[1][i * 2 + 1] = out[1][i * 2 + 2] = 'b' + (i * 2) % 26;
      }
      out[2][n - 1] = out[3][n - 1] = 'c';
      for (i = 0; i < n / 2; i++) {
        out[2][n - i * 2 - 2] = out[2][n - i * 2 - 3] = 'a' + (i * 2) % 26;
        out[3][n - i * 2 - 2] = out[3][n - i * 2 - 3] = 'b' + (i * 2) % 26;
      }
      for (i = 0; i < 4; i++) {
        out[i][n] = 0;
        printf("%s\n", out[i]);
      }
    }
    if (n % 2 == 0) {
      out[0][0] = out[1][0] = 'z';
      for (i = 0; i < n / 2 - 1; i++) {
        out[0][i * 2 + 1] = out[0][i * 2 + 2] = 'a' + (i * 2) % 26;
        out[1][i * 2 + 1] = out[1][i * 2 + 2] = 'b' + (i * 2) % 26;
      }
      for (i = 0; i < n / 2; i++) {
        out[2][i * 2 + 1] = out[2][i * 2] = 'a' + (i * 2) % 26;
        out[3][i * 2 + 1] = out[3][i * 2] = 'b' + (i * 2) % 26;
      }
      for (i = 0; i < 26; i++) {
        if ('a' + i != out[0][n - 2] && 'a' + i != out[1][n - 2] &&
            'a' + i != out[2][n - 1]) {
          out[0][n - 1] = out[1][n - 1] = 'a' + i;
          break;
        }
      }
      for (i = 0; i < 4; i++) {
        out[i][n] = 0;
        printf("%s\n", out[i]);
      }
    }
  }
  return 0;
}
