#include <bits/stdc++.h>
char a[5][102];
int main() {
  int n, i, k;
  scanf("%d", &n);
  if (n == 1)
    printf("a\na\nb\nb\n");
  else {
    a[2][1] = 'z';
    a[3][1] = 'z';
    k = 0;
    for (i = 2; i <= n; ++i) {
      if (i % 2) {
        a[2][i - 1] = a[2][i] = k + 'a';
        k = (k + 1) % 26;
        a[3][i - 1] = a[3][i] = k + 'a';
        k = (k + 1) % 26;
        if (i == n) a[0][i] = a[1][i] = k + 'a', k = (k + 1) % 26;
      } else {
        a[0][i - 1] = a[0][i] = k + 'a';
        k = (k + 1) % 26;
        a[1][i - 1] = a[1][i] = k + 'a';
        k = (k + 1) % 26;
        if (i == n) a[2][i] = a[3][i] = k + 'a', k = (k + 1) % 26;
      }
    }
    printf("%s\n", a[0] + 1);
    printf("%s\n", a[1] + 1);
    printf("%s\n", a[2] + 1);
    printf("%s\n", a[3] + 1);
  }
  return 0;
}
