#include <bits/stdc++.h>
using namespace std;
int num[5];
char board[5][10][55];
int p[] = {1, 2, 3, 0};
int main() {
  for (int i = 0; i < 4; i++) cin >> num[i], num[i]--;
  int cnt, ii, k;
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 8; j++)
      for (k = 0; k < 50; k++) board[i][j][k] = i + 'A';
    for (int j = 0; j < 8 && num[p[i]]; j += 2)
      for (k = 0; k < 50 && num[p[i]]; k += 2)
        board[i][j][k] = p[i] + 'A', num[p[i]]--;
  }
  cout << 32 << " " << 50 << endl;
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 8; j++, cout << endl)
      for (int k = 0; k < 50; k++) cout << board[i][j][k];
  cout << endl;
}
