#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n <= 2) {
    if (n == 1)
      cout << "a" << endl << "a" << endl << "b" << endl << "b" << endl;
    else
      cout << "aa" << endl << "bb" << endl << "aa" << endl << "bb" << endl;
  } else {
    string s, t, u, v;
    if (n % 2 == 0) {
      for (int i = 0; i < n / 2; i++) {
        if (i % 2 == 0)
          s += "aa";
        else
          s += "bb";
      }
      t += "c";
      u += "c";
      for (int i = 0; i < n / 2 - 1; i++) {
        if (i % 2 == 0) {
          t += "dd";
          u += "ee";
        } else {
          t += "ee";
          u += "dd";
        }
      }
      t += "c";
      u += "c";
      cout << s << endl << t << endl << u << endl << s << endl;
    } else {
      for (int i = 0; i < n / 2; i++) {
        if (i % 2 == 0) {
          s += "aa";
          u += "bb";
        } else {
          s += "bb";
          u += "aa";
        }
      }
      s += "c";
      u += "c";
      t += "d";
      v += "d";
      for (int i = 0; i < n / 2; i++) {
        if (i % 2 == 0) {
          t += "ee";
          v += "ff";
        } else {
          t += "ff";
          v += "ee";
        }
      }
      cout << s << endl << u << endl << t << endl << v << endl;
    }
  }
  return 0;
}
