#include <bits/stdc++.h>
char v[4][101], p[4][5] = {"aabb", "ccdd", "feef", "hggh"};
int main(void) {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < n; j++) v[i][j] = p[i][j % 4];
  v[n % 2 ? 0 : 2][n - 1] = v[n % 2 ? 1 : 3][n - 1] = 'y';
  v[2][0] = v[3][0] = 'z';
  for (int i = 0; i < 4; i++) puts(v[i]);
}
