#include <bits/stdc++.h>
void printEven(int n) {
  for (int i = 0; i < n / 4; ++i) {
    std::cout << "aagg";
  }
  if (n / 4 * 4 != n) std::cout << "aa";
  std::cout << "\n";
  std::cout << "b";
  for (int i = 0; i < (n - 2) / 4; ++i) {
    std::cout << "cchh";
  }
  if (n / 4 * 4 == n) std::cout << "cc";
  std::cout << "j\n";
  std::cout << "b";
  for (int i = 0; i < (n - 2) / 4; ++i) {
    std::cout << "iidd";
  }
  if (n / 4 * 4 == n) std::cout << "ii";
  std::cout << "j\n";
  for (int i = 0; i < n / 4; ++i) {
    std::cout << "eeff";
  }
  if (n / 4 * 4 != n) std::cout << "ee";
  std::cout << std::endl;
}
void printOdd(int n) {
  for (int i = 0; i < (n - 1) / 4; ++i) {
    std::cout << "aacc";
  }
  if ((n - 1) / 4 * 4 != (n - 1)) std::cout << "aa";
  std::cout << "e\n";
  for (int i = 0; i < (n - 1) / 4; ++i) {
    std::cout << "bbdd";
  }
  if ((n - 1) / 4 * 4 != (n - 1)) std::cout << "bb";
  std::cout << "e\n";
  std::cout << "f";
  for (int i = 0; i < (n - 1) / 4; ++i) {
    std::cout << "ggii";
  }
  if ((n - 1) / 4 * 4 != (n - 1)) std::cout << "gg";
  std::cout << "\n";
  std::cout << "f";
  for (int i = 0; i < (n - 1) / 4; ++i) {
    std::cout << "hhjj";
  }
  if ((n - 1) / 4 * 4 != (n - 1)) std::cout << "hh";
  std::cout << "\n";
}
int main() {
  int n;
  std::cin >> n;
  if (n == 1) {
    std::cout << "a\na\nb\nb" << std::endl;
    return 0;
  }
  if (n == 2) {
    std::cout << "aa\nbb\ncc\ndd" << std::endl;
    return 0;
  }
  if (n / 2 * 2 == n)
    printEven(n);
  else
    printOdd(n);
  return 0;
}
