#include <bits/stdc++.h>
using namespace std;
int main() {
  char ans[50][50];
  for (int i = 0; i < 25; i++)
    for (int j = 0; j < 25; j++) ans[i][j] = 'A';
  for (int i = 0; i < 25; i++)
    for (int j = 25; j < 50; j++) ans[i][j] = 'B';
  for (int i = 25; i < 50; i++)
    for (int j = 0; j < 25; j++) ans[i][j] = 'C';
  for (int i = 25; i < 50; i++)
    for (int j = 25; j < 50; j++) ans[i][j] = 'D';
  long long int a, b, c, d;
  cin >> a >> b >> c >> d;
  a--;
  b--;
  c--;
  d--;
  for (int i = 0; i < 25; i += 2) {
    for (int j = 0; j < 25; j += 2) {
      if (d > 0) {
        ans[i][j] = 'D';
        d--;
      } else
        break;
    }
  }
  for (int i = 0; i < 25; i += 2) {
    for (int j = 25; j < 50; j += 2) {
      if (c > 0) {
        ans[i][j] = 'C';
        c--;
      } else
        break;
    }
  }
  for (int i = 25; i < 50; i += 2) {
    for (int j = 0; j < 25; j += 2) {
      if (b > 0) {
        ans[i][j] = 'B';
        b--;
      } else
        break;
    }
  }
  for (int i = 25; i < 50; i += 2) {
    for (int j = 25; j < 50; j += 2) {
      if (a > 0) {
        ans[i][j] = 'A';
        a--;
      } else
        break;
    }
  }
  cout << 50 << " " << 50 << endl;
  for (int i = 0; i < 50; i++) {
    for (int j = 0; j < 50; j++) cout << ans[i][j];
    cout << endl;
  }
}
