#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int inf = (int)1e9 + 7;
const double inf1 = 1e-9;
const int ss = (int)1e6 + 3;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a\na\nb\nb\n";
    return 0;
  }
  if (n == 2) {
    cout << "aa\nbb\ncc\ndd\n";
    return 0;
  }
  int k = 0;
  string s = "abcdefgh";
  vector<vector<char> > mas(4, vector<char>(n));
  if (n % 2 == 0) {
    mas[1][0] = mas[2][0] = mas[1][n - 1] = mas[2][n - 1] = 'z';
    for (int i = 0; i < n - 2; i += 2) {
      mas[0][i] = mas[0][i + 1] = s[k];
      mas[1][i + 1] = mas[1][i + 2] = s[k + 1];
      mas[2][i + 1] = mas[2][i + 2] = s[k + 2];
      mas[3][i] = mas[3][i + 1] = s[k + 3];
      k += 4;
      k %= 8;
    }
    mas[0][n - 2] = mas[0][n - 1] = s[k];
    mas[3][n - 2] = mas[3][n - 1] = s[k + 1];
  } else {
    int k = 0;
    string s = "abcdefgh";
    mas[2][0] = mas[3][0] = mas[0][n - 1] = mas[1][n - 1] = 'z';
    for (int i = 0; i < n - 1; i += 2) {
      mas[0][i] = mas[0][i + 1] = s[k];
      mas[1][i] = mas[1][i + 1] = s[k + 1];
      mas[2][i + 1] = mas[2][i + 2] = s[k + 2];
      mas[3][i + 1] = mas[3][i + 2] = s[k + 3];
      k += 4;
      k %= 8;
    }
  }
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < n; ++j) {
      cout << mas[i][j];
    }
    cout << endl;
  }
  return 0;
}
