#include <bits/stdc++.h>
using namespace std;
char mas[4][105];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    if (i % 4 == 0) {
      mas[0][i] = 'a';
      mas[1][i] = 'b';
      mas[2][i] = 'c';
      mas[3][i] = 'd';
    } else if (i % 4 == 1) {
      mas[0][i] = 'a';
      mas[1][i] = 'b';
      mas[2][i] = 'a';
      mas[3][i] = 'b';
    } else if (i % 4 == 2) {
      mas[0][i] = 'c';
      mas[1][i] = 'd';
      mas[2][i] = 'a';
      mas[3][i] = 'b';
    } else if (i % 4 == 3) {
      mas[0][i] = 'c';
      mas[1][i] = 'd';
      mas[2][i] = 'c';
      mas[3][i] = 'd';
    }
  }
  mas[2][0] = 'e';
  mas[3][0] = 'e';
  if (n % 2 == 0) {
    mas[2][n - 1] = 'f';
    mas[3][n - 1] = 'f';
  } else {
    mas[0][n - 1] = 'f';
    mas[1][n - 1] = 'f';
  }
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < n; j++) printf("%c", mas[i][j]);
    printf("\n");
  }
  return 0;
}
