#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
const double PI = acos(-1.0);
char a[10][111];
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    puts("a");
    puts("a");
    puts("b");
    puts("b");
    return 0;
  } else if (n == 2) {
    puts("aa");
    puts("bb");
    puts("cc");
    puts("dd");
    return 0;
  } else if (n % 2 == 1) {
    a[1][1] = a[2][1] = 'a';
    a[3][n] = a[4][n] = 'a';
    int now = 1;
    for (int j = 2; j <= n; j += 2) {
      if (now)
        a[1][j] = a[1][j + 1] = 'b';
      else
        a[1][j] = a[1][j + 1] = 'x';
      if (now)
        a[2][j] = a[2][j + 1] = 'c';
      else
        a[2][j] = a[2][j + 1] = 'y';
      if (now)
        a[3][j - 1] = a[3][j] = 'd';
      else
        a[3][j - 1] = a[3][j] = 'z';
      if (now)
        a[4][j - 1] = a[4][j] = 'e';
      else
        a[4][j - 1] = a[4][j] = 't';
      now = 1 - now;
    }
    for (int i = (1), _b = (4); i <= _b; i++) {
      for (int j = (1), _b = (n); j <= _b; j++) cout << a[i][j];
      puts("");
    }
  } else {
    a[2][1] = a[3][1] = a[2][n] = a[3][n] = 'u';
    int now = 1;
    for (int j = 2; j <= n; j += 2) {
      if (now)
        a[1][j - 1] = a[1][j] = 'a';
      else
        a[1][j - 1] = a[1][j] = 'x';
      if (j + 1 <= n) {
        if (now)
          a[2][j] = a[2][j + 1] = 'b';
        else
          a[2][j] = a[2][j + 1] = 'y';
        if (now)
          a[3][j] = a[3][j + 1] = 'c';
        else
          a[3][j] = a[3][j + 1] = 'z';
      }
      if (now)
        a[4][j - 1] = a[4][j] = 'd';
      else
        a[4][j - 1] = a[4][j] = 't';
      now = 1 - now;
    }
    for (int i = (1), _b = (4); i <= _b; i++) {
      for (int j = (1), _b = (n); j <= _b; j++) cout << a[i][j];
      puts("");
    }
  }
  return 0;
}
