#include <bits/stdc++.h>
using namespace std;
long long cnt[4];
char grid[51][51];
signed main() {
  ios::sync_with_stdio(false);
  long long sum = 0;
  for (long long i = 0; i < (4); i++) {
    cin >> cnt[i];
  }
  for (long long ii = 0; ii < (2); ii++) {
    for (long long jj = 0; jj < (2); jj++) {
      for (long long i = (ii * 25); i < ((ii + 1) * 25); i++) {
        for (long long j = (jj * 25); j < ((jj + 1) * 25); j++) {
          char c = 'A' + ii * 2 + jj;
          grid[i][j] = c;
        }
      }
      long long fin = 0;
      for (long long i = ii * 25 + 1; i < (ii + 1) * 25; i += 2) {
        for (long long j = jj * 25 + 1; j < (jj + 1) * 25; j += 2) {
          char c = 'A' + ii * 2 + jj + 1;
          if (c == 'E') c = 'A';
          if (cnt[c - 'A'] == 1) {
            fin = 1;
            break;
          }
          grid[i][j] = c;
          cnt[c - 'A']--;
        }
        if (fin == 1) break;
      }
    }
  }
  cout << (50) << " " << (50) << "\n";
  for (long long i = 0; i < (50); i++) {
    for (long long j = 0; j < (50); j++) {
      cout << grid[i][j];
    }
    cout << endl;
  }
}
