#include <bits/stdc++.h>
using namespace std;
const int N = 105;
int n, m, a, b, c, x, y, tx, ty;
int mat[N][N];
char str[N * 2][N * 2];
int up(int i, int j) {
  if (i == 0) return 0;
  int t = mat[i - 1][j];
  if (t == 2 || t == 5) return 0;
  return 1;
}
int left(int i, int j) {
  if (j == 0) return 0;
  int t = mat[i][j - 1];
  if (t == 4 || t == 5) return 0;
  return 1;
}
void go() {
  if (y < m - 1)
    y++;
  else
    x++, y = 0;
}
void pp(int i, int j) {
  if (mat[i][j] == 0) {
    str[i * 2][j * 2] = '#';
    str[i * 2][j * 2 + 1] = '#';
    str[i * 2 + 1][j * 2] = '#';
    str[i * 2 + 1][j * 2 + 1] = '#';
  }
  if (mat[i][j] == 1) {
    str[i * 2][j * 2] = '.';
    str[i * 2][j * 2 + 1] = '.';
    str[i * 2 + 1][j * 2] = '.';
    str[i * 2 + 1][j * 2 + 1] = '.';
  }
  if (mat[i][j] == 2) {
    str[i * 2][j * 2] = '\\';
    str[i * 2][j * 2 + 1] = '#';
    str[i * 2 + 1][j * 2] = '.';
    str[i * 2 + 1][j * 2 + 1] = '\\';
  }
  if (mat[i][j] == 3) {
    str[i * 2][j * 2] = '.';
    str[i * 2][j * 2 + 1] = '/';
    str[i * 2 + 1][j * 2] = '/';
    str[i * 2 + 1][j * 2 + 1] = '#';
  }
  if (mat[i][j] == 4) {
    str[i * 2][j * 2] = '\\';
    str[i * 2][j * 2 + 1] = '.';
    str[i * 2 + 1][j * 2] = '#';
    str[i * 2 + 1][j * 2 + 1] = '\\';
  }
  if (mat[i][j] == 5) {
    str[i * 2][j * 2] = '#';
    str[i * 2][j * 2 + 1] = '/';
    str[i * 2 + 1][j * 2] = '/';
    str[i * 2 + 1][j * 2 + 1] = '.';
  }
}
void output() {
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < m; ++j) pp(i, j);
  for (int i = 0; i < 2 * n; ++i) {
    for (int j = 0; j < 2 * m; ++j) printf("%c", str[i][j]);
    puts("");
  }
}
int main() {
  tx = ty = x = y = 0;
  scanf("%d%d", &n, &m);
  scanf("%d%d%d", &a, &b, &c);
  swap(a, b);
  for (int i = 0; i < a; ++i, go()) mat[x][y] = 1;
  ty = y, tx = x;
  int bb = (a % m) & 1;
  if (!a || a >= m) {
    for (int i = 0; i < m && c; ++i, go(), c--) {
      if (tx == x) {
        int tt = y - ty;
        if (tt & 1)
          mat[x][y] = 4;
        else
          mat[x][y] = 3;
      } else {
        if ((y & 1) ^ bb)
          mat[x][y] = 3;
        else
          mat[x][y] = 4;
      }
    }
  } else {
    int nc = a;
    for (int i = 0; i < m; ++i, go()) {
      if (tx == x) {
        int tt = y - ty;
        if (nc < c) {
          if (tt & 1)
            mat[x][y] = 4;
          else
            mat[x][y] = 3;
          nc++;
        } else
          mat[x][y] = 0;
      } else {
        if ((y & 1) ^ bb)
          mat[x][y] = 3;
        else
          mat[x][y] = 4;
      }
    }
  }
  for (int i = 0; i < b; ++i, go()) mat[x][y] = 0;
  for (int i = 0; i < c; ++i, go()) {
    int t1 = left(x, y);
    int t2 = up(x, y);
    if (t1 && t2) mat[x][y] = 5;
    if (t1 && !t2) mat[x][y] = 4;
    if (!t1 && t2) mat[x][y] = 2;
    if (!t1 && !t2) mat[x][y] = 3;
  }
  output();
  return 0;
}
