#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, m = 50, n = 44;
char s[50][50];
int main() {
  cin >> a >> b >> c >> d;
  for (int i = 0; i < (11); i++)
    for (int j = 0; j < (m); j++) {
      s[i][j] = 'B';
      s[i + 11][j] = 'A';
      s[i + 22][j] = 'C';
      s[i + 33][j] = 'D';
    }
  a--;
  b--;
  c--;
  d--;
  int i = 1, j = 1;
  while (a > 0) {
    s[i][j] = 'A';
    a--;
    j += 2;
    if (j > 47) {
      j = 1;
      i += 2;
    }
  }
  i = 12, j = 1;
  while (b > 0) {
    s[i][j] = 'B';
    b--;
    j += 2;
    if (j > 47) {
      j = 1;
      i += 2;
    }
  }
  i = 23, j = 1;
  while (d > 0) {
    s[i][j] = 'D';
    d--;
    j += 2;
    if (j > 47) {
      j = 1;
      i += 2;
    }
  }
  i = 34, j = 1;
  while (c > 0) {
    s[i][j] = 'C';
    c--;
    j += 2;
    if (j > 47) {
      j = 1;
      i += 2;
    }
  }
  printf("%d %d\n", n, m);
  for (int i = 0; i < (n); i++) {
    for (int j = 0; j < (m); j++) putchar(s[i][j]);
    if (i < n - 1) puts("");
  }
  return 0;
}
