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