#include <bits/stdc++.h>
using namespace std;
const int tmax = 55;
int a, b, c, d;
char s[tmax][tmax];
int main() {
  cin >> a >> b >> c >> d;
  printf("50 50\n");
  int i, j;
  for (i = 1; i <= 25; i++)
    for (j = 1; j <= 25; j++) s[i][j] = 'A';
  for (i = 1; i <= 25; i++)
    for (j = 26; j <= 50; j++) s[i][j] = 'B';
  for (i = 26; i <= 50; i++)
    for (j = 1; j <= 25; j++) s[i][j] = 'C';
  for (i = 26; i <= 50; i++)
    for (j = 26; j <= 50; j++) s[i][j] = 'D';
  a--;
  b--;
  c--;
  d--;
  for (i = 2; i <= 24; i += 2) {
    for (j = 2; j <= 24; j += 2) {
      if (b == 0) break;
      s[i][j] = 'B';
      b--;
    }
  }
  for (i = 2; i <= 24; i += 2) {
    for (j = 27; j <= 49; j += 2) {
      if (c == 0) break;
      s[i][j] = 'C';
      c--;
    }
  }
  for (i = 27; i <= 49; i += 2) {
    for (j = 2; j <= 24; j += 2) {
      if (d == 0) break;
      s[i][j] = 'D';
      d--;
    }
  }
  for (i = 27; i <= 49; i += 2) {
    for (j = 27; j <= 49; j += 2) {
      if (a == 0) break;
      s[i][j] = 'A';
      a--;
    }
  }
  for (i = 1; i <= 50; i++) printf("%s\n", &s[i][1]);
  return 0;
}
