#include <bits/stdc++.h>
char g[5][105];
int main() {
  int n, i, j, k;
  scanf("%d", &n);
  if (n == 1) {
    for (i = 0; i < 2; i++) g[i][0] = 'a';
    for (i = 2; i < 4; i++) g[i][0] = 'b';
    for (i = 0; i < 4; i++) printf("%c\n", g[i][0]);
    return 0;
  }
  if (n % 2 == 0) {
    k = 0;
    for (i = 0; i < n; i += 2) {
      g[0][i] = g[0][i + 1] = 'a' + k;
      g[1][i] = g[1][i + 1] = 'a' + k + 1;
      k = (k + 2) % 25;
    }
    k = 10;
    g[2][0] = g[3][0] = 'a' + k;
    k++;
    for (i = 1; i < n - 1; i += 2) {
      g[2][i] = g[2][i + 1] = 'a' + k;
      g[3][i] = g[3][i + 1] = 'a' + k + 1;
      k = (k + 2) % 25;
    }
    g[2][i] = g[3][i] = 'a' + k;
    for (i = 0; i < 4; i++) {
      for (j = 0; j < n; j++) putchar(g[i][j]);
      puts("");
    }
  } else {
    k = 0;
    for (i = 0; i < n - 1; i += 2) {
      g[0][i] = g[0][i + 1] = 'a' + k;
      g[1][i] = g[1][i + 1] = 'a' + k + 1;
      k = (k + 2) % 25;
    }
    g[0][i] = g[1][i] = 'a' + k;
    k = 10;
    g[2][0] = g[3][0] = 'a' + k;
    k++;
    for (i = 1; i < n; i += 2) {
      g[2][i] = g[2][i + 1] = 'a' + k;
      g[3][i] = g[3][i + 1] = 'a' + k + 1;
      k = (k + 2) % 25;
    }
    for (i = 0; i < 4; i++) {
      for (j = 0; j < n; j++) putchar(g[i][j]);
      puts("");
    }
  }
}
