#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int res[55][55];
int x, y;
int main() {
  scanf("%d %d %d %d", &a, &b, &c, &d);
  for (int i = 0; i < 50; i += 2) {
    for (int j = 0; j < 50; j += 2)
      if (a > 1) res[i][j] = 1, a--;
    if (a == 1) {
      x = i + 1;
      break;
    }
  }
  for (int i = (0); i <= (x); i++)
    for (int j = (0); j < (50); j++)
      if (res[i][j] == 0) res[i][j] = 2;
  b--;
  for (int i = x + 2; i < 50; i += 2) {
    for (int j = 0; j < 50; j += 2)
      if (b > 0)
        res[i][j] = 2, b--;
      else if (c > 0)
        res[i][j] = 3, c--;
      else if (d > 0)
        res[i][j] = 4, d--;
    if (d == 0) {
      x = i + 1;
      break;
    }
  }
  for (int i = (0); i < (x); i++)
    for (int j = (0); j < (50); j++)
      if (res[i][j] == 0) res[i][j] = 1;
  printf("%d 50\n", x);
  for (int i = (0); i < (x); i++) {
    for (int j = (0); j < (50); j++) printf("%c", res[i][j] + 'A' - 1);
    puts("");
  }
  return 0;
}
