#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 1) {
    if (n == 1) {
      cout << "a" << endl << "a" << endl << "b" << endl << "b" << endl;
    } else if (n == 3) {
      cout << "abb" << endl;
      cout << "acc" << endl;
      cout << "dde" << endl;
      cout << "ffe" << endl;
    } else {
      n /= 2;
      cout << "z";
      for (int i = 0; i < n; i++) {
        if (i % 2 == 0)
          cout << "aa";
        else
          cout << "bb";
      }
      cout << endl;
      cout << "z";
      for (int i = 0; i < n; i++) {
        if (i % 2 == 0)
          cout << "cc";
        else
          cout << "dd";
      }
      cout << endl;
      for (int i = 0; i < n; i++) {
        if (i == 0)
          cout << "eef";
        else if (i == n - 1) {
          if (i % 2 == 0) {
            cout << "gh";
          } else {
            cout << "fh";
          }
        } else if (i % 2 == 0)
          cout << "gf";
        else
          cout << "fg";
      }
      cout << endl;
      for (int i = 0; i < n; i++) {
        if (i == 0)
          cout << "yyi";
        else if (i == n - 1) {
          if (i % 2 == 0) {
            cout << "jh";
          } else {
            cout << "ih";
          }
        } else if (i % 2 == 0)
          cout << "ji";
        else
          cout << "ij";
      }
      cout << endl;
    }
  } else {
    if (n == 2) {
      cout << "aa" << endl;
      cout << "bb" << endl;
      cout << "cc" << endl;
      cout << "dd" << endl;
    } else {
      n /= 2;
      for (int i = 0; i < n; i++) {
        if (i % 2 == 0)
          cout << "aa";
        else
          cout << "bb";
      }
      cout << endl;
      for (int i = 0; i < n; i++) {
        if (i % 2 == 0)
          cout << "cc";
        else
          cout << "dd";
      }
      cout << endl;
      for (int i = 0; i < n; i++) {
        if (i == 0)
          cout << "ef";
        else if (i == n - 1) {
          if (i % 2 == 0) {
            cout << "gh";
          } else {
            cout << "fh";
          }
        } else if (i % 2 == 0)
          cout << "gf";
        else
          cout << "fg";
      }
      cout << endl;
      for (int i = 0; i < n; i++) {
        if (i == 0)
          cout << "ei";
        else if (i == n - 1) {
          if (i % 2 == 0) {
            cout << "jh";
          } else {
            cout << "ih";
          }
        } else if (i % 2 == 0)
          cout << "ji";
        else
          cout << "ij";
      }
      cout << endl;
    }
  }
  return 0;
}
