#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  if (n == 1) {
    cout << "a\na\nb\nb\n";
    return 0;
  }
  if (n == 2) {
    cout << "aa\nbb\ncc\ndd\n";
    return 0;
  }
  if (n % 2 == 1) {
    cout << "x";
    for (int(i) = 0; (i) < (n / 2); ++(i))
      if (i % 2)
        cout << "aa";
      else
        cout << "bb";
    cout << endl;
    cout << "x";
    for (int(i) = 0; (i) < (n / 2); ++(i))
      if (i % 2)
        cout << "cc";
      else
        cout << "dd";
    cout << endl;
    for (int(i) = 0; (i) < (n / 2); ++(i))
      if (i % 2)
        cout << "ee";
      else
        cout << "ff";
    cout << "y";
    cout << endl;
    for (int(i) = 0; (i) < (n / 2); ++(i))
      if (i % 2)
        cout << "gg";
      else
        cout << "hh";
    cout << "y";
    cout << endl;
    return 0;
  }
  for (int(i) = 0; (i) < (n / 2); ++(i)) {
    if (i % 2)
      cout << "aa";
    else
      cout << "bb";
  }
  cout << endl;
  cout << "c";
  for (int(i) = 0; (i) < (n / 2 - 1); ++(i))
    if (i % 2)
      cout << "kk";
    else
      cout << "dd";
  cout << "e";
  cout << endl;
  cout << "c";
  for (int(i) = 0; (i) < (n / 2 - 1); ++(i))
    if (i % 2)
      cout << "ff";
    else
      cout << "gg";
  cout << "e";
  cout << endl;
  for (int(i) = 0; (i) < (n / 2); ++(i)) {
    if (i % 2)
      cout << "aa";
    else
      cout << "bb";
  }
  cout << endl;
}
