#include <bits/stdc++.h>
using namespace std;
char v[103][103];
int a, b, c, d, x, y;
int main() {
  ios::sync_with_stdio(false);
  cin >> a >> b >> c >> d;
  x = 1;
  y = 1;
  while (a > 1) {
    v[x][y] = 'a';
    --a;
    if (a == 1) break;
    x += 2;
    if (x > 50) {
      x = 1;
      y += 2;
    }
  }
  ++y;
  --b;
  for (int i = 1; i <= 50; ++i) {
    for (int j = 1; j <= y; ++j)
      if (v[i][j] != 'a') v[i][j] = 'b';
  }
  x = 1;
  y += 2;
  while (b) {
    v[x][y] = 'b';
    --b;
    x += 2;
    if (x > 50) {
      x = 1;
      y += 2;
    }
    if (b == 0) break;
  }
  while (c) {
    v[x][y] = 'c';
    --c;
    x += 2;
    if (x > 50) {
      x = 1;
      y += 2;
    }
    if (c == 0) break;
  }
  while (d) {
    v[x][y] = 'd';
    --d;
    x += 2;
    if (x > 50) {
      x = 1;
      y += 2;
    }
    if (d == 0) break;
  }
  for (int i = 1; i <= 50; ++i) {
    for (int j = 1; j <= 50; ++j) {
      if (v[i][j] != 'a' && v[i][j] != 'b' && v[i][j] != 'c' && v[i][j] != 'd')
        v[i][j] = 'a';
    }
  }
  cout << 50 << ' ' << 50 << '\n';
  for (int i = 1; i <= 50; ++i) {
    for (int j = 1; j <= 50; ++j) cout << v[i][j];
    cout << '\n';
  }
  return 0;
}
