#include <bits/stdc++.h>
using namespace std;
double helen(double a, double b, double c) {
  double p = (a + b + c) / 2;
  return sqrt(p * (p - a) * (p - b) * (p - c));
}
struct point {
  double x, y;
  point() {}
  point(double x, double y) : x(x), y(y) {}
};
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    for (int i = 1; i <= 4; i++) {
      for (int j = 1; j <= n; j++) {
        if (i == 1 || i == 4) {
          if (((j + 1) / 2) % 2 == 1)
            cout << "a";
          else
            cout << "b";
        } else {
          if (j == 1)
            cout << "c";
          else if (j == n)
            cout << "d";
          else {
            if (i == 2) {
              if ((j / 2) % 2 == 1)
                cout << "e";
              else
                cout << "f";
            } else {
              if ((j / 2) % 2 == 1)
                cout << "g";
              else
                cout << "h";
            }
          }
        }
      }
      cout << endl;
    }
  } else {
    n--;
    for (int i = 1; i <= 2; i++) {
      for (int j = 1; j <= n; j++) {
        if (i == 1) {
          if (((j + 1) / 2) % 2 == 1)
            cout << "a";
          else
            cout << "b";
        } else {
          if (((j + 1) / 2) % 2 == 1)
            cout << "b";
          else
            cout << "a";
        }
      }
      cout << "c" << endl;
    }
    for (int i = 1; i <= 2; i++) {
      cout << "g";
      for (int j = 1; j <= n; j++) {
        if (i == 1) {
          if (((j + 1) / 2) % 2 == 1)
            cout << "e";
          else
            cout << "f";
        } else {
          if (((j + 1) / 2) % 2 == 1)
            cout << "f";
          else
            cout << "e";
        }
      }
      cout << endl;
    }
  }
}
