#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a" << endl;
    cout << "a" << endl;
    cout << "b" << endl;
    cout << "b" << endl;
  }
  if (n == 2) {
    cout << "aa" << endl;
    cout << "bb" << endl;
    cout << "cc" << endl;
    cout << "dd" << endl;
  }
  if (n > 2 && n % 2 == 1) {
    cout << "a";
    for (int i = 1; i * 2 <= n - 1; i++) {
      if (i % 2 == 0)
        cout << "bb";
      else
        cout << "cc";
    }
    cout << endl;
    cout << "a";
    for (int i = 1; i * 2 <= n - 1; i++) {
      if (i % 2 == 0)
        cout << "dd";
      else
        cout << "ee";
    }
    cout << endl;
    for (int i = 1; i * 2 <= n - 1; i++) {
      if (i % 2 == 0)
        cout << "ff";
      else
        cout << "gg";
    }
    cout << "h" << endl;
    for (int i = 1; i * 2 <= n - 1; i++) {
      if (i % 2 == 0)
        cout << "xx";
      else
        cout << "yy";
    }
    cout << "h" << endl;
  }
  if (n > 2 && n % 2 == 0) {
    for (int i = 1; i * 2 <= n; i++) {
      if (i % 2 == 0)
        cout << "aa";
      else
        cout << "bb";
    }
    cout << endl;
    cout << "c";
    for (int i = 1; i * 2 <= n - 2; i++) {
      if (i % 2 == 0)
        cout << "dd";
      else
        cout << "ee";
    }
    cout << "f" << endl;
    cout << "c";
    for (int i = 1; i * 2 <= n - 2; i++) {
      if (i % 2 == 0)
        cout << "xx";
      else
        cout << "yy";
    }
    cout << "f" << endl;
    for (int i = 1; i * 2 <= n; i++) {
      if (i % 2 == 0)
        cout << "aa";
      else
        cout << "bb";
    }
    cout << endl;
  }
  return 0;
}
