#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  if (n == 2) {
    cout << "aa\nbb\ncc\ndd\n";
    return 0;
  }
  if (n % 2) {
    cout << 'a';
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + 1 + (i % 2)) << (char)('a' + 1 + (i % 2));
    cout << "\na";
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + 1 + ((i + 1) % 2))
           << (char)('a' + 1 + ((i + 1) % 2));
    cout << "\n";
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + 4 + (i % 2)) << (char)('a' + 4 + (i % 2));
    cout << "h\n";
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + 4 + ((i + 1) % 2))
           << (char)('a' + 4 + ((i + 1) % 2));
    cout << "h\n";
  } else {
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + (i % 2)) << (char)('a' + (i % 2));
    cout << "\nc";
    for (int i = 0; i < n / 2 - 1; ++i)
      cout << (char)('a' + 3 + (i % 2)) << (char)('a' + 3 + (i % 2));
    cout << "c\nc";
    for (int i = 1; i <= n / 2 - 1; ++i)
      cout << (char)('a' + 3 + (i % 2)) << (char)('a' + 3 + (i % 2));
    cout << "c\n";
    for (int i = 0; i < n / 2; ++i)
      cout << (char)('a' + (i % 2)) << (char)('a' + (i % 2));
    cout << "\n";
  }
  return 0;
}
