#include <bits/stdc++.h>
using namespace std;
int G[55][55];
pair<int, int> cc[5];
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  for (int i = 1; i <= 25; i++) {
    for (int j = 0; j <= 50; j++) {
      G[i][j] = 1;
    }
  }
  for (int i = 26; i <= 50; i++) {
    for (int j = 0; j <= 50; j++) {
      G[i][j] = 2;
    }
  }
  a--;
  b--;
  for (int i = 1; i <= 25 && b; i += 2) {
    for (int j = 1; j <= 50 && b; j += 2) {
      G[i][j] = 2;
      b--;
    }
  }
  for (int i = 26; i <= 50 && d; i += 2) {
    for (int j = 1; j <= 50 && d; j += 2) {
      G[i][j] = 4;
      d--;
    }
  }
  for (int i = 25; i > 0 && c; i -= 2) {
    for (int j = 1; j <= 50 && c; j += 2) {
      G[i][j] = 3;
      c--;
    }
  }
  for (int i = 50; i > 25 && a; i -= 2) {
    for (int j = 1; j <= 50 && a; j += 2) {
      G[i][j] = 1;
      a--;
    }
  }
  cout << 50 << " " << 50 << endl;
  for (int i = 1; i <= 50; i++) {
    for (int j = 1; j <= 50; j++) {
      printf("%c", 'A' + G[i][j] - 1);
    }
    puts("");
  }
}
