#include <bits/stdc++.h>
int N;
int main() {
  scanf("%d", &N);
  if (N == 2) {
    puts("aa");
    puts("cf");
    puts("cf");
    puts("aa");
  } else if (N % 2) {
    for (int i = 0, now = 'a'; i < N - 1; i++) {
      putchar(now);
      if (i % 2) now = (now == 'a') ? 'b' : 'a';
    }
    putchar('c');
    putchar('\n');
    for (int i = 0, now = 'd'; i < N - 1; i++) {
      putchar(now);
      if (i % 2) now = (now == 'd') ? 'e' : 'd';
    }
    putchar('c');
    putchar('\n');
    putchar('f');
    for (int i = 0, now = 'g'; i < N - 1; i++) {
      putchar(now);
      if (i % 2) now = (now == 'g') ? 'h' : 'g';
    }
    putchar('\n');
    putchar('f');
    for (int i = 0, now = 'i'; i < N - 1; i++) {
      putchar(now);
      if (i % 2) now = (now == 'i') ? 'j' : 'i';
    }
    putchar('\n');
  } else {
    for (int i = 0, now = 'a'; i < N; i++) {
      putchar(now);
      if (i % 2) now = (now == 'a') ? 'b' : 'a';
    }
    putchar('\n');
    putchar('c');
    for (int i = 0, now = 'd'; i < N - 2; i++) {
      putchar(now);
      if (i % 2) now = (now == 'd') ? 'e' : 'd';
    }
    putchar('c');
    putchar('\n');
    putchar('c');
    for (int i = 0, now = 'f'; i < N - 2; i++) {
      putchar(now);
      if (i % 2) now = (now == 'f') ? 'g' : 'f';
    }
    putchar('c');
    putchar('\n');
    for (int i = 0, now = 'a'; i < N; i++) {
      putchar(now);
      if (i % 2) now = (now == 'a') ? 'b' : 'a';
    }
    putchar('\n');
  }
}
