#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;
    return 0;
  } else if (n == 2) {
    cout << "aa" << endl;
    cout << "bb" << endl;
    cout << "aa" << endl;
    cout << "bb" << endl;
    return 0;
  } else if (n % 2 == 0) {
    int k = n / 4;
    for (int i = 0; i < k; i++) cout << "aabb";
    if (n % 4) cout << "aa";
    cout << endl;
    cout << "c";
    for (int i = 0; i < (n - 1) / 4; i++) cout << "ddee";
    if ((n - 2) % 4) cout << "dd";
    cout << "f" << endl;
    cout << "c";
    for (int i = 0; i < (n - 1) / 4; i++) cout << "gghh";
    if ((n - 2) % 4) cout << "gg";
    cout << "f" << endl;
    for (int i = 0; i < k; i++) cout << "aabb";
    if (n % 4) cout << "aa";
    return 0;
  } else {
    int k = n / 4;
    for (int i = 0; i < k; i++) cout << "aabb";
    if ((n - 1) % 4) cout << "aa";
    cout << "c" << endl;
    for (int i = 0; i < k; i++) cout << "ddee";
    if ((n - 1) % 4) cout << "dd";
    cout << "c" << endl;
    cout << "f";
    for (int i = 0; i < k; i++) cout << "gghh";
    if ((n - 1) % 4) cout << "gg";
    cout << endl;
    cout << "f";
    for (int i = 0; i < k; i++) cout << "iijj";
    if ((n - 1) % 4) cout << "ii";
    cout << endl;
    return 0;
  }
  return 0;
}
