#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using PII = pair<int, int>;
char S[55][55];
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int n = 50, m = 50;
  int x = 2, y = 2;
  bool flag = true;
  auto newline = [&]() {
    y = 2;
    x += flag ? 3 : 2;
    flag = true;
  };
  auto fil = [&](int t, char c) {
    while (t--) {
      if (y + 1 == m) {
        newline();
      }
      S[x][y] = c;
      if (!t) break;
      x += flag ? 1 : -1;
      y++;
      flag = !flag;
    }
  };
  for (int i = (1); i <= (n); ++i)
    for (int j = (1); j <= (m); ++j) S[i][j] = 'D';
  fil(a, 'A');
  newline();
  fil(b, 'B');
  newline();
  fil(c, 'C');
  for (int j = (y); j <= (m); ++j) S[x][j] = 'C';
  for (int i = (x); i <= (n); ++i) S[i][m] = 'C';
  newline();
  for (int i = (x); i <= (n); ++i)
    for (int j = (1); j <= (m); ++j) S[i][j] = 'C';
  x++;
  fil(d - 1, 'D');
  printf("%d %d\n", n, m);
  for (int i = (1); i <= (n); ++i) printf("%s\n", S[i] + 1);
  return 0;
}
