#include <bits/stdc++.h>
using namespace std;
int n, sz, g, h, i, j, T, pos1, pos2, i1, i2, d, sh, st, mn, k;
vector<vector<int> > a;
int main() {
  cin >> n;
  a.assign(n, vector<int>(4, -1));
  g = 0;
  for (i = 0; i < n - 1; i += 2) {
    a[i][0] = a[i + 1][0] = g;
    g = (g + 1) % 26;
  }
  g = 1;
  for (i = 0; i < n - 1; i += 2) {
    a[i][1] = a[i + 1][1] = g;
    g = (g + 1) % 26;
  }
  if (a[n - 1][0] == -1) a[n - 1][0] = a[n - 1][1] = g;
  a[0][2] = a[0][3] = 2;
  g = 4;
  for (i = 1; i < n - 1; i += 2) {
    a[i][2] = a[i + 1][2] = g;
    g = (g + 1) % 26;
  }
  g = 5;
  for (i = 1; i < n - 1; i += 2) {
    a[i][3] = a[i + 1][3] = g;
    g = (g + 1) % 26;
  }
  if (a[n - 1][2] == -1) a[n - 1][2] = a[n - 1][3] = g;
  for (i = 0; i < n; i++)
    for (j = 0; j < 4; j++)
      if (a[i][j] == -1) {
        cout << -1;
        return 0;
      }
  for (j = 0; j < 4; j++) {
    for (i = 0; i < n; i++) cout << char(a[i][j] + 'a');
    cout << endl;
  }
  return 0;
}
