#include <bits/stdc++.h>
using namespace std;
int id[4][300];
int color[300];
bool err = false;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    printf("a\na\nb\nb\n");
    return 0;
  }
  for (int i = 0; i < 25; i++) color[i] = i;
  if (n % 2 == 0) {
    for (int i = 0; (i << 1) < n; i++) {
      id[0][i << 1] = id[0][(i << 1) + 1] = i & 1;
      id[3][i << 1] = id[3][(i << 1) + 1] = i & 1;
    }
    id[1][0] = id[2][0] = 2;
    id[1][n - 1] = id[2][n - 1] = 3;
    for (int i = 1; i < n - 1; i += 2) {
      if (i % 4 == 1) {
        id[1][i] = id[1][i + 1] = 4;
        id[2][i] = id[2][i + 1] = 5;
      } else {
        id[1][i] = id[1][i + 1] = 5;
        id[2][i] = id[2][i + 1] = 4;
      }
    }
  } else {
    id[0][0] = id[1][0] = 0;
    id[2][n - 1] = id[3][n - 1] = 1;
    for (int i = 1; i < n; i += 2) {
      if (i % 4 == 1) {
        id[0][i] = id[0][i + 1] = 2;
        id[1][i] = id[1][i + 1] = 3;
      } else {
        id[0][i] = id[0][i + 1] = 3;
        id[1][i] = id[1][i + 1] = 2;
      }
    }
    for (int i = 0; i < n - 1; i += 2) {
      if (i % 4 == 0) {
        id[2][i] = id[2][i + 1] = 4;
        id[3][i] = id[3][i + 1] = 5;
      } else {
        id[2][i] = id[2][i + 1] = 5;
        id[3][i] = id[3][i + 1] = 4;
      }
    }
  }
  if (err) {
    puts("-1");
    return 0;
  }
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < n; j++) {
      printf("%c", (char)('a' + id[i][j]));
    }
    puts("");
  }
}
