#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int cnt[4] = {};
  for (int i = 0; i < 4; ++i) {
    cin >> cnt[i];
    --cnt[i];
  }
  vector<string> A(40, string(50, ' '));
  for (int l = 1; l < 5; ++l) {
    int l2 = l % 4;
    int ind = (l2 - 1 + 4) % 4;
    for (int i = ind * 10; i < ind * 10 + 10; ++i) {
      for (int j = 0; j < 50; ++j) {
        A[i][j] = ind + 'A';
      }
    }
    int tar = 0;
    for (int i = ind * 10; tar < cnt[l2] && i < ind * 10 + 10; i += 2) {
      for (int j = 1; tar < cnt[l2] && j < 50; j += 2) {
        A[i][j] = l2 + 'A';
        ++tar;
      }
    }
  }
  cout << 40 << " " << 50 << "\n";
  for (int i = 0; i < 40; ++i) {
    cout << A[i] << "\n";
  }
  return 0;
}
