#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a\na\nb\nb\n";
  } else if (n == 2) {
    cout << "aa\nbb\ncc\ndd\n";
  } else {
    vector<vector<char> > A(4, vector<char>(n, 'z'));
    for (int i = 0; i < n - 1; i++) {
      for (int k = 0; k < 2; k++)
        for (int j = 0; j < 2; j++) {
          int row = (i % 2) ? k : 2 + k;
          int col = i + j;
          A[row][col] = (((i * 2 + k) % 16) + 'a');
        }
    }
    for (int r = 0; r < 4; r++) {
      for (int c = 0; c < n; c++) cout << A[r][c];
      cout << endl;
    }
  }
}
