#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int a, b, c, d;
char s[60][60];
int main() {
  ios::sync_with_stdio(false);
  cin >> a >> b >> c >> d, a--;
  for (int i = 1; i <= 8; i++) {
    if (i & 1) {
      for (int j = 2; j <= 50; j += 2) s[i][j] = 'A';
      for (int j = 1; j <= 50; j += 2)
        if (b > 1)
          b--, s[i][j] = 'B';
        else
          s[i][j] = 'A';
    } else
      for (int j = 1; j <= 50; j++) s[i][j] = 'A';
  }
  for (int i = 1; i <= 50; i++) s[9][i] = 'B';
  for (int i = 10; i <= 33; i++) {
    if (!(i & 1)) {
      for (int j = 2; j <= 50; j += 2) s[i][j] = 'B';
      for (int j = 1; j <= 50; j += 2)
        if (a)
          a--, s[i][j] = 'A';
        else if (c)
          c--, s[i][j] = 'C';
        else if (d)
          d--, s[i][j] = 'D';
        else
          s[i][j] = 'B';
    } else {
      for (int j = 1; j <= 50; j++) s[i][j] = 'B';
    }
  }
  printf("33 50\n");
  for (int i = 1; i <= 33; i++) s[i][51] = 0, puts(s[i] + 1);
  return 0;
}
