#include <bits/stdc++.h>
using namespace std;
int n;
string s1 = "", s2 = "", s3 = "", s4 = "";
int main() {
  cin >> n;
  if (n == 1) {
    cout << 'a' << endl;
    cout << 'a' << endl;
    cout << 'c' << endl;
    cout << 'c' << endl;
    return 0;
  }
  if (n == 2) {
    cout << "aa" << endl;
    cout << "bc" << endl;
    cout << "bc" << endl;
    cout << "dd" << endl;
    return 0;
  }
  if (n % 2 == 1) {
    int m = n / 2;
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s1 = s1 + "aa";
      else
        s1 = s1 + "cc";
    s1 = s1 + 'b';
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s2 = s2 + "cc";
      else
        s2 = s2 + "aa";
    s2 = s2 + 'b';
    s3 = s3 + 'b';
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s3 = s3 + "dd";
      else
        s3 = s3 + "ee";
    s4 = s4 + 'b';
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s4 = s4 + "ee";
      else
        s4 = s4 + "dd";
    cout << s1 << endl;
    cout << s2 << endl;
    cout << s3 << endl;
    cout << s4 << endl;
  } else {
    int m = n / 2;
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s1 = s1 + "aa";
      else
        s1 = s1 + "cc";
    s2 = s2 + 'b';
    for (int i = 0; i < m - 1; ++i)
      if (i % 2)
        s2 = s2 + "ee";
      else
        s2 = s2 + "dd";
    s2 = s2 + 'b';
    s3 = s3 + 'b';
    for (int i = 0; i < m - 1; ++i)
      if (i % 2)
        s3 = s3 + "dd";
      else
        s3 = s3 + "ee";
    s3 = s3 + 'b';
    for (int i = 0; i < m; ++i)
      if (i % 2)
        s4 = s4 + "cc";
      else
        s4 = s4 + "aa";
    cout << s1 << endl;
    cout << s2 << endl;
    cout << s3 << endl;
    cout << s4 << endl;
  }
  return 0;
}
