#include <bits/stdc++.h>
using namespace std;
int n, m, A, B, C, a[127][127];
char sc[127 << 1][127 << 1];
int main() {
  scanf("%d%d%d%d%d", &n, &m, &A, &B, &C);
  int i, j, k, w, x = 0, y = 0;
  for (i = 1; i <= n; i++)
    for (j = 1; j <= m; j++) a[i][j] = 5;
  for (i = 1; (i <= n) && (A >= 0); i++)
    for (j = 1; (j <= m) && (A >= 0); j++)
      if (A--)
        a[i][j] = 4;
      else {
        x = i;
        y = j;
      }
  if (y == 1) {
    a[x][m] = 2;
    for (j = m - 1; j >= 1; j--) a[x][j] = a[x][j + 1] ^ 1;
  } else {
    a[x + 1][y - 1] = 2;
    for (j = y - 2; j >= 1; j--) a[x + 1][j] = a[x + 1][j + 1] ^ 1;
    a[x][y] = 2;
    for (j = y + 1; j <= m; j++) a[x][j] = a[x][j - 1] ^ 1;
  }
  C -= m;
  for (i = n; (i >= 1) && C; i--)
    for (j = m; (j >= 1) && C; j--) {
      C--;
      a[i][j] = 0;
      for (k = i + 1; k <= n; k++) a[k][j] = 3 - a[k][j];
      for (w = j + 1; w <= m; w++) a[i][w] ^= 1;
    }
  for (i = 1; i <= n; i++)
    for (j = 1; j <= m; j++) switch (a[i][j]) {
        case 0:
          sc[(i << 1) - 1][(j << 1) - 1] = '.';
          sc[(i << 1) - 1][(j << 1)] = '/';
          sc[(i << 1)][(j << 1) - 1] = '/';
          sc[(i << 1)][(j << 1)] = '#';
          break;
        case 1:
          sc[(i << 1) - 1][(j << 1) - 1] = '\\';
          sc[(i << 1) - 1][(j << 1)] = '.';
          sc[(i << 1)][(j << 1) - 1] = '#';
          sc[(i << 1)][(j << 1)] = '\\';
          break;
        case 2:
          sc[(i << 1) - 1][(j << 1) - 1] = '#';
          sc[(i << 1) - 1][(j << 1)] = '/';
          sc[(i << 1)][(j << 1) - 1] = '/';
          sc[(i << 1)][(j << 1)] = '.';
          break;
        case 3:
          sc[(i << 1) - 1][(j << 1) - 1] = '\\';
          sc[(i << 1) - 1][(j << 1)] = '#';
          sc[(i << 1)][(j << 1) - 1] = '.';
          sc[(i << 1)][(j << 1)] = '\\';
          break;
        case 4:
          sc[(i << 1) - 1][(j << 1) - 1] = sc[(i << 1) - 1][(j << 1)] =
              sc[(i << 1)][(j << 1) - 1] = sc[(i << 1)][(j << 1)] = '#';
          break;
        case 5:
          sc[(i << 1) - 1][(j << 1) - 1] = sc[(i << 1) - 1][(j << 1)] =
              sc[(i << 1)][(j << 1) - 1] = sc[(i << 1)][(j << 1)] = '.';
          break;
        default:
          break;
      }
  for (i = 1; i <= (n << 1); i++) printf("%s\n", sc[i] + 1);
  return 0;
}
