#include <bits/stdc++.h>
using namespace std;
string tile[6] = {"####", "....", "\\#.\\", ".//#", "\\.#\\", "#//."};
int maze[111][111];
int x, y;
int n, m;
void next() {
  y++;
  if (y == m) y = 0, x++;
}
int main() {
  int a, b, c;
  while (~scanf("%d%d", &n, &m)) {
    scanf("%d%d%d", &a, &b, &c);
    x = 0, y = 0;
    for (int i = 0; i < a; i++, next()) {
      maze[x][y] = 0;
    }
    for (int i = 0, s = y; i < m; i++, next()) {
      if (y >= s) {
        maze[x][y] = ((y - s) & 1) ? 2 : 5;
      } else {
        maze[x][y] = ((s - y) & 1) ? 5 : 2;
      }
    }
    for (int i = 0; i < b; i++, next()) {
      maze[x][y] = 1;
    }
    int sx = x, sy = y;
    while (x != n) {
      if (y >= sy) {
        maze[x][y] = maze[x][y] = ((x - sx) & 1)   ? ((y - sy) & 1) ? 2 : 5
                                  : ((y - sy) & 1) ? 4
                                                   : 3;
      } else {
        maze[x][y] = maze[x][y] = ((x - sx) & 1)   ? ((sy - y) & 1) ? 3 : 4
                                  : ((sy - y) & 1) ? 5
                                                   : 2;
      }
      next();
    }
    for (int i = 0; i < n * 2; i++) {
      for (int j = 0; j < m * 2; j++) {
        printf("%c", tile[maze[i >> 1][j >> 1]][(i & 1) << 1 | (j & 1)]);
      }
      puts("");
    }
  }
  return 0;
}
