#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100 + 10;
char t[4][MAXN];
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    t[2][0] = t[3][0] = 'a';
    t[0][n - 1] = t[1][n - 1] = 'f';
    for (int i = 0; i < (int)(n); i++) {
      t[0][i] = t[2][i + 1] = 'b' + (i / 2) % 2;
      t[1][i + 1] = t[3][i] = 'd' + (i / 2) % 2;
      t[1][0] = t[2][0] = 'a';
      t[1][n - 1] = t[2][n - 1] = 'f';
    }
  } else {
    t[2][0] = t[3][0] = 'a';
    t[0][n - 1] = t[1][n - 1] = 'f';
    for (int i = 0; i < (int)(n - 1); i++) {
      t[0][i] = t[2][i + 1] = 'b' + (i / 2) % 2;
      t[1][i] = t[3][i + 1] = 'd' + (i / 2) % 2;
    }
  }
  for (int i = 0; i < (int)(4); i++) {
    for (int j = 0; j < (int)(n); j++) cout << t[i][j];
    cout << endl;
  }
}
