#include <bits/stdc++.h>
using namespace std;
int mat[51][51];
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  a--, b--;
  for (int i = 1; i < 25; i += 2) {
    for (int j = 1; j < 50; j += 2) {
      if (b) {
        mat[i][j] = 2;
        b--;
      } else if (c) {
        mat[i][j] = 3;
        c--;
      }
    }
  }
  for (int i = 27; i <= 50; i += 2) {
    for (int j = 1; j < 50; j += 2) {
      if (d) {
        mat[i][j] = 4;
        d--;
      } else if (a) {
        mat[i][j] = 1;
        a--;
      }
    }
  }
  cout << 50 << " " << 50 << endl;
  for (int i = 1; i <= 50; i++) {
    for (int j = 1; j <= 50; j++) {
      if (i <= 25) {
        if (mat[i][j] == 0) cout << "A";
        if (mat[i][j] == 2) cout << "B";
        if (mat[i][j] == 3) cout << "C";
      }
      if (i > 25) {
        if (mat[i][j] == 0) cout << "B";
        if (mat[i][j] == 1) cout << "A";
        if (mat[i][j] == 4) cout << "D";
      }
    }
    cout << endl;
  }
  return 0;
}
