#include <bits/stdc++.h>
using namespace std;
char pan[4][55][55];
int main() {
  ios_base::sync_with_stdio(0);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  a--, b--, c--, d--;
  for (int i = 0; i < 4; i++) {
    int cnt = c, now = i;
    if (i == 0) cnt = c, now = 2;
    if (i == 1) cnt = d, now = 3;
    if (i == 2) cnt = a, now = 0;
    if (i == 3) cnt = b, now = 1;
    for (int j = 0; j < 8; j++)
      for (int k = 0; k < 50; k++) pan[i][j][k] = 'A' + i;
    for (int j = 0; j < 8 && cnt; j += 2)
      for (int k = 0; k < 50 && cnt; k += 2) pan[i][j][k] = 'A' + now, cnt--;
    for (int j = 0; j < 8; j++) pan[i][j][50] = 0;
  }
  cout << 32 << " " << 50 << endl;
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 8; j++) cout << pan[i][j] << endl;
  return 0;
}
