#include <bits/stdc++.h>
using namespace std;
const int MAX = 120;
char mm[MAX << 1][MAX << 1];
int tt[MAX][MAX];
int n, m, a, b, c;
void draw(int x, int y, int ty) {
  if (ty == 1)
    mm[x][y] = '.', mm[x + 1][y] = mm[x][y + 1] = '/', mm[x + 1][y + 1] = '#';
  if (ty == 2)
    mm[x][y] = '#', mm[x + 1][y] = mm[x][y + 1] = '/', mm[x + 1][y + 1] = '.';
  if (ty == 3)
    mm[x][y + 1] = '#', mm[x][y] = mm[x + 1][y + 1] = '\\', mm[x + 1][y] = '.';
  if (ty == 4)
    mm[x][y + 1] = '.', mm[x][y] = mm[x + 1][y + 1] = '\\', mm[x + 1][y] = '#';
  if (ty == 5) mm[x][y] = mm[x + 1][y] = mm[x][y + 1] = mm[x + 1][y + 1] = '.';
  if (ty == 6) mm[x][y] = mm[x + 1][y] = mm[x][y + 1] = mm[x + 1][y + 1] = '#';
}
int check(char l, char u) {
  if (l == '#' && u == '#') return 2;
  if (l == '#' && u == '.') return 4;
  if (l == '.' && u == '#') return 3;
  if (l == '.' && u == '.') return 1;
}
int main() {
  scanf("%d%d%d%d%d", &n, &m, &a, &b, &c);
  int row = 0, col = 0;
  for (int i = 0; i < b; i++) {
    tt[row][col] = 5, draw(2 * row, 2 * col, 5);
    if (col == m - 1)
      row++, col = 0;
    else
      col++;
  }
  bool f = 1;
  int tt1 = m - b % m, tt2 = m - tt1;
  for (int i = 0; i < tt1; i++) {
    if (f)
      tt[row][col] = 1, draw(2 * row, 2 * col, 1);
    else
      tt[row][col] = 4, draw(2 * row, 2 * col, 4);
    if (col == m - 1)
      row++, col = 0;
    else
      col++;
    f = f ^ 1;
    c--;
  }
  if (tt2 % 2 == 0)
    f = 0;
  else
    f = 1;
  for (int i = 0; i < tt2; i++) {
    if (f)
      tt[row][col] = 1, draw(2 * row, 2 * col, 1);
    else
      tt[row][col] = 4, draw(2 * row, 2 * col, 4);
    if (col == m - 1)
      row++, col = 0;
    else
      col++;
    f = f ^ 1;
    c--;
  }
  for (int i = 0; i < a; i++) {
    tt[row][col] = 6, draw(2 * row, 2 * col, 6);
    if (col == m - 1)
      row++, col = 0;
    else
      col++;
  }
  char l, u;
  for (int i = 0; i < c; i++) {
    int x = 2 * row, y = 2 * col;
    if (y == 0)
      l = '#';
    else if (mm[x][y - 1] == '/')
      l = mm[x + 1][y - 1];
    else
      l = mm[x][y - 1];
    if (mm[x - 1][y] == '/')
      u = mm[x - 1][y + 1];
    else
      u = mm[x - 1][y];
    int ty = check(l, u);
    tt[row][col] = ty, draw(x, y, ty);
    if (col == m - 1)
      row++, col = 0;
    else
      col++;
  }
  for (int i = 0; i < 2 * n; i++) {
    for (int j = 0; j < 2 * m; j++) putchar(mm[i][j]);
    printf("\n");
  }
  return 0;
}
