#include <bits/stdc++.h>
using namespace std;
long long modulo(long long num) {
  return ((num % 1000000007) + 1000000007) % 1000000007;
}
long long power(long long b, long long e, long long MOD = 1000000007) {
  long long ans = 1;
  while (e) {
    if (e % 2) ans = (ans * b) % MOD;
    b = (b * b) % MOD;
    e /= 2;
  }
  return ans;
}
long long inv(long long num, long long MOD = 1000000007) {
  return power(modulo(num), 1000000007 - 2, MOD);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b, c, d, i, j, k, cnt;
  char s[60][60];
  cin >> a >> b >> c >> d;
  cnt = a - 1;
  for (i = 9; i <= 16; i++) {
    for (j = 1; j <= 50; j++) {
      if (i % 2 == 0 or j % 2 == 0) {
        s[i][j] = 'D';
        continue;
      }
      if (cnt) {
        s[i][j] = 'A';
        cnt--;
      } else
        s[i][j] = 'D';
    }
  }
  cnt = b;
  for (i = 17; i <= 24; i++) {
    for (j = 1; j <= 50; j++) {
      if (i % 2 == 0 or j % 2 == 0) {
        s[i][j] = 'D';
        continue;
      }
      if (cnt) {
        s[i][j] = 'B';
        cnt--;
      } else
        s[i][j] = 'D';
    }
  }
  cnt = c;
  for (i = 25; i <= 32; i++) {
    for (j = 1; j <= 50; j++) {
      if (i % 2 == 0 or j % 2 == 0) {
        s[i][j] = 'D';
        continue;
      }
      if (cnt) {
        s[i][j] = 'C';
        cnt--;
      } else
        s[i][j] = 'D';
    }
  }
  cnt = d - 1;
  for (i = 1; i <= 8; i++) {
    for (j = 1; j <= 50; j++) {
      if (i % 2) {
        s[i][j] = 'A';
        continue;
      }
      if (i % 2 == 0 and j % 2) {
        s[i][j] = 'A';
        continue;
      }
      if (cnt) {
        s[i][j] = 'D';
        cnt--;
      } else
        s[i][j] = 'A';
    }
  }
  cout << "34 50" << endl;
  for (i = 1; i <= 8; i++) {
    for (j = 1; j <= 50; j++) cout << s[i][j];
    cout << endl;
  }
  for (i = 1; i <= 50; i++) cout << "A";
  cout << endl;
  for (i = 1; i <= 50; i++) cout << "D";
  cout << endl;
  for (i = 9; i <= 32; i++) {
    for (j = 1; j <= 50; j++) cout << s[i][j];
    cout << endl;
  }
  return 0;
}
