#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  vector<queue<char>> Q(4);
  Q[0].push('A');
  Q[0].push('E');
  Q[1].push('B');
  Q[2].push('C');
  Q[3].push('D');
  int K;
  cin >> K;
  for (int i = 0; i < K; i++) {
    Q[(i + 1) % 4].push(Q[i % 4].front());
    Q[i % 4].pop();
  }
  vector<string> ans(4);
  for (int i = 0; i < 4; i++) {
    while (!Q[i].empty()) {
      ans[i] += Q[i].front();
      Q[i].pop();
    }
  }
  for (int i = 0; i < 4; i++) {
    cout << ans[i] << endl;
  }
  return 0;
}