#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    for (int i = 0; i < 2; i++) {
      cout << "a" << endl;
    }
    for (int i = 0; i < 2; i++) {
      cout << "b" << endl;
    }
    return 0;
  }
  vector<string> v;
  v.resize(4);
  if (n & 1) {
    for (int i = 0, j = 0; i < n - 1; i += 2) {
      v[0].push_back('a' + j);
      v[0].push_back('a' + j);
      v[1].push_back('c' + j);
      v[1].push_back('c' + j);
      v[2].push_back('e' + j);
      v[2].push_back('e' + j);
      v[3].push_back('g' + j);
      v[3].push_back('g' + j);
      j ^= 1;
    }
    v[0].push_back('x');
    v[1].push_back('x');
    v[2].insert(v[2].begin(), 'y');
    v[3].insert(v[3].begin(), 'y');
    for (int i = 0; i < 4; i++) {
      cout << v[i] << endl;
    }
    return 0;
  }
  for (int i = 0, j = 0; i < n; i += 2) {
    v[0].push_back('a' + j);
    v[0].push_back('a' + j);
    v[3].push_back('a' + j);
    v[3].push_back('a' + j);
    j ^= 1;
  }
  for (int i = 1, j = 0; i < n - 1; i += 2) {
    v[1].push_back('c' + j);
    v[1].push_back('c' + j);
    v[2].push_back('e' + j);
    v[2].push_back('e' + j);
    j ^= 1;
  }
  v[1] += 'x';
  v[2] += 'x';
  v[1].insert(v[1].begin(), 'y');
  v[2].insert(v[2].begin(), 'y');
  for (int i = 0; i < 4; i++) {
    cout << v[i] << endl;
  }
  return 0;
}
