#include <bits/stdc++.h>
using namespace std;
char mp[105][105];
void paint(long long int x, long long int y, long long int xx,
           long long int yy) {
  mp[x][y] = mp[xx][yy] = (x % 5) * 5 + y % 5 + 'a';
}
int main() {
  long long int n;
  cin >> n;
  if (n % 2) {
    for (long long int i = 0; i < ((long long int)(n / 2)); i++)
      for (long long int j = 0; j < ((long long int)(2)); j++)
        paint(j, i * 2, j, i * 2 + 1);
    for (long long int i = 0; i < ((long long int)(n / 2)); i++)
      for (long long int j = 0; j < ((long long int)(2)); j++)
        paint(j + 2, i * 2 + 1, j + 2, i * 2 + 2);
    paint(0, n - 1, 1, n - 1);
    paint(2, 0, 3, 0);
  } else {
    for (long long int i = 0; i < ((long long int)(n / 2)); i++)
      for (long long int j = 0; j < ((long long int)(4)); j++)
        if (j == 0 || j == 3) paint(j, i * 2, j, i * 2 + 1);
    for (long long int i = 0; i < ((long long int)(n / 2 - 1)); i++)
      for (long long int j = 0; j < ((long long int)(2)); j++)
        paint(j + 1, i * 2 + 1, j + 1, i * 2 + 2);
    paint(1, 0, 2, 0);
    paint(1, n - 1, 2, n - 1);
  }
  for (long long int i = 0; i < ((long long int)(4)); i++) {
    for (long long int j = 0; j < ((long long int)(n)); j++) cout << mp[i][j];
    cout << endl;
  }
}
