#include <bits/stdc++.h>
using namespace std;
const double MPI(acos(-1.0));
const double EPS(1.0e-10);
const int IMAX(1 << 30);
const long long int LLMAX(1LL << 61);
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "x\nx\ny\ny" << endl;
  } else {
    string lines[4];
    for (int i = (int)(0); i < (int)(4); i++) lines[i] = string(n, ' ');
    for (int i = 0; i < n; i += 2) {
      if (i + 1 < n) {
        lines[0][i] = lines[0][i + 1] = ((i >> 1) & 1) ? 'a' : 'b';
        lines[1][i] = lines[1][i + 1] = ((i >> 1) & 1) ? 'c' : 'd';
      } else {
        lines[0][i] = lines[1][i] = 'e';
      }
    }
    for (int i = 1; i < n; i += 2) {
      if (i + 1 < n) {
        lines[2][i] = lines[2][i + 1] = ((i >> 1) & 1) ? 'f' : 'g';
        lines[3][i] = lines[3][i + 1] = ((i >> 1) & 1) ? 'h' : 'i';
      } else {
        lines[2][i] = lines[3][i] = 'j';
      }
    }
    lines[2][0] = lines[3][0] = 'k';
    for (int i = (int)(0); i < (int)(4); i++) cout << lines[i] << endl;
  }
  return 0;
}
