#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s = "qabcd";
  if (n == 1) {
    cout << "a" << endl << "a" << endl << "b" << endl << "b";
    return 0;
  }
  if (n == 2) {
    cout << "aa" << endl << "bb" << endl << "aa" << endl << "bb";
    return 0;
  }
  if (n % 2 == 1) {
    for (int i = 1; i < n; i++) {
      cout << s[((i - 1) / 2 + 1) % 2 + 1];
    }
    cout << s[0] << endl;
    for (int i = 1; i < n; i++) {
      cout << s[((i - 1) / 2 + 3) % 2 + 1 + 2];
    }
    cout << s[0] << endl;
    cout << s[0];
    for (int i = 2; i <= n; i++) {
      cout << s[((i) / 2) % 2 + 1];
    }
    cout << endl << s[0];
    for (int i = 2; i <= n; i++) {
      cout << s[((i) / 2 + 2) % 2 + 1 + 2];
    }
    return 0;
  }
  for (int i = 1; i <= n; i++) cout << s[((i - 1) / 2 + 1) % 2 + 1];
  cout << endl;
  for (int i = 1; i <= n; i++) cout << s[((i - 1) / 2 + 3) % 2 + 1 + 2];
  cout << endl;
  cout << s[0];
  for (int i = 2; i < n; i++) cout << s[((i) / 2) % 2 + 1];
  cout << s[0];
  cout << endl;
  cout << s[0];
  for (int i = 2; i < n; i++) cout << s[((i) / 2 + 2) % 2 + 1 + 2];
  cout << s[0];
  cout << endl;
  return 0;
}
