#include <bits/stdc++.h>
using namespace std;
const int N = 55;
char s[N][N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  for (int i = 0; i < 9; i++) {
    for (int j = 0; j < 50; j++) s[i][j] = 'A';
  }
  for (int i = 9; i < 18; i++) {
    for (int j = 0; j < 50; j++) s[i][j] = 'B';
  }
  for (int i = 18; i < 27; i++) {
    for (int j = 0; j < 50; j++) s[i][j] = 'C';
  }
  for (int i = 27; i < 36; i++) {
    for (int j = 0; j < 50; j++) s[i][j] = 'D';
  }
  a--, b--, c--, d--;
  for (int i = 1; i < 9; i += 2) {
    if (b <= 0) break;
    for (int j = 0; j < 50; j += 2) {
      if (b) {
        b--, s[i][j] = 'B';
      } else
        break;
    }
  }
  for (int i = 10; i < 18; i += 2) {
    if (c <= 0) break;
    for (int j = 0; j < 50; j += 2) {
      if (c) {
        c--, s[i][j] = 'C';
      } else
        break;
    }
  }
  for (int i = 19; i < 27; i += 2) {
    if (d <= 0) break;
    for (int j = 0; j < 50; j += 2) {
      if (d) {
        d--, s[i][j] = 'D';
      } else
        break;
    }
  }
  for (int i = 28; i < 36; i += 2) {
    if (a <= 0) break;
    for (int j = 0; j < 50; j += 2) {
      if (a) {
        a--, s[i][j] = 'A';
      } else
        break;
    }
  }
  cout << 36 << " " << 50 << endl;
  for (int i = 0; i < 36; i++) {
    for (int j = 0; j < 50; j++) cout << s[i][j];
    cout << endl;
  }
  return 0;
}
