#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  char gr[51][51];
  for (int i = 0; i < 50; i++)
    for (int j = 0; j < 50; j++) {
      gr[i][j] = (j < 25) ? 'a' : 'b';
    }
  a--;
  b--;
  for (int i = 0; i < 50; i += 2) {
    for (int j = 0; j < 24; j += 2) {
      if (b) {
        gr[i][j] = 'b';
        b--;
      } else if (c) {
        gr[i][j] = 'c';
        c--;
      }
    }
  }
  for (int i = 0; i < 50; i += 2) {
    for (int j = 26; j < 50; j += 2) {
      if (a) {
        gr[i][j] = 'a';
        a--;
      } else if (d) {
        gr[i][j] = 'd';
        d--;
      }
    }
  }
  cout << 50 << " " << 50 << endl;
  for (int i = 0; i < 50; i++) {
    for (int j = 0; j < 50; j++) cout << gr[i][j];
    cout << endl;
  }
  return 0;
}
