#include <bits/stdc++.h>
using namespace std;
char a[5][1005];
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    for (int i = 1; i <= n / 2; i++)
      if (i % 2 == 1)
        a[1][i * 2 - 1] = a[1][i * 2] = 'a';
      else
        a[1][i * 2 - 1] = a[1][i * 2] = 'b';
    for (int i = 1; i <= n; i++) a[4][i] = a[1][i];
    a[2][1] = a[3][1] = 'c';
    a[2][n] = a[3][n] = 'd';
    for (int i = 1; i <= n / 2 - 1; i++)
      if (i % 2 == 1)
        a[2][i * 2] = a[2][i * 2 + 1] = 'e';
      else
        a[2][i * 2] = a[2][i * 2 + 1] = 'f';
    for (int i = 1; i <= n / 2 - 1; i++)
      if (i % 2 == 1)
        a[3][i * 2] = a[3][i * 2 + 1] = 'g';
      else
        a[3][i * 2] = a[3][i * 2 + 1] = 'h';
  } else {
    for (int i = 1; i <= n / 2; i++)
      if (i % 2 == 1)
        a[1][i * 2 - 1] = a[1][i * 2] = 'a';
      else
        a[1][i * 2 - 1] = a[1][i * 2] = 'b';
    for (int i = 1; i <= n / 2; i++)
      if (i % 2 == 1)
        a[2][i * 2 - 1] = a[2][i * 2] = 'c';
      else
        a[2][i * 2 - 1] = a[2][i * 2] = 'd';
    a[1][n] = a[2][n] = 'e';
    for (int i = 1; i <= n; i++) {
      a[3][i] = a[1][n - i + 1];
      a[4][i] = a[2][n - i + 1];
    }
    a[3][1] = a[4][1] = 'f';
  }
  for (int i = 1; i <= 4; i++) {
    for (int j = 1; j <= n; j++) cout << a[i][j];
    cout << endl;
  }
  return 0;
}
