#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if (n == 1)
    printf("a\na\nb\nb\n");
  else if (n == 2)
    printf("aa\nbb\naa\nbb");
  else if (n % 2 == 0) {
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", j % ('z' - 'a') + 'a', j % ('z' - 'a') + 'a');
    printf("\n");
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", (j + 1) % ('z' - 'a') + 'a', (j + 1) % ('z' - 'a') + 'a');
    printf("\nz");
    for (int j = 0; j <= n / 2 - 2; ++j)
      printf("%c%c", (j + 3) % ('z' - 'a') + 'a', (j + 3) % ('z' - 'a') + 'a');
    printf("z\nz");
    for (int j = 0; j <= n / 2 - 2; ++j)
      printf("%c%c", (j + 4) % ('z' - 'a') + 'a', (j + 4) % ('z' - 'a') + 'a');
    printf("z\n");
  } else {
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", j % ('z' - 'a') + 'a', j % ('z' - 'a') + 'a');
    printf("z\n");
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", (j + 1) % ('z' - 'a') + 'a', (j + 1) % ('z' - 'a') + 'a');
    printf("z\nz");
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", (j + 3) % ('z' - 'a') + 'a', (j + 3) % ('z' - 'a') + 'a');
    printf("\nz");
    for (int j = 0; j <= n / 2 - 1; ++j)
      printf("%c%c", (j + 4) % ('z' - 'a') + 'a', (j + 4) % ('z' - 'a') + 'a');
    printf("\n");
  }
  return 0;
}
