#include <bits/stdc++.h>
using namespace std;
int main() {
  long long(a), (b);
  scanf("%lld%lld", &(a), &(b));
  ;
  long long(c), (d);
  scanf("%lld%lld", &(c), &(d));
  ;
  vector<vector<char>> A(50, vector<char>(50));
  for (long long i = 0; i < (25); i++)
    for (long long j = 0; j < (50); j++) A[i][j] = 'A';
  for (long long i = 25; i < (50); i++)
    for (long long j = 0; j < (50); j++) A[i][j] = 'B';
  --a;
  --b;
  long long c1 = 0, r = 0;
  while (b--) {
    A[r][c1] = 'B';
    c1 += 2;
    if (c1 >= 50) {
      r += 2;
      c1 = 0;
    }
  }
  while (c--) {
    A[r][c1] = 'C';
    c1 += 2;
    if (c1 >= 50) {
      r += 2;
      c1 = 0;
    }
  }
  c1 = 0, r = 26;
  while (a--) {
    A[r][c1] = 'A';
    c1 += 2;
    if (c1 >= 50) {
      r += 2;
      c1 = 0;
    }
  }
  while (d--) {
    A[r][c1] = 'D';
    c1 += 2;
    if (c1 >= 50) {
      r += 2;
      c1 = 0;
    }
  }
  printf("50 50\n");
  for (long long i = 0; i < (50); i++) {
    for (long long j = 0; j < (50); j++) printf("%c", A[i][j]);
    printf("\n");
  }
  return 0;
}
