#include <bits/stdc++.h>
using namespace std;
const int MAX = 109;
string s[2][6] = {{"##", "..", "\\#", "./", "\\.", "#/"},
                  {"##", "..", ".\\", "/#", "#\\", "/."}};
int n, m, x, y, z, mp[MAX][MAX], r, c, t;
void k() { c++, r += c / m, c %= m; }
int main() {
  cin >> n >> m >> x >> y >> z;
  for (int i = 0; i < x; i++) mp[r][c] = 0, k();
  for (int i = 0; i < m; i++) mp[r][c] = 8, k();
  for (int i = 0; i < y; i++) mp[r][c] = 1, k();
  for (int i = m; i < z; i++) mp[r][c] = 9, k();
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) {
      if (mp[i][j] == 8 + t) r = i, c = j, t++;
      if (mp[i][j] == 8) mp[i][j] = 5 - (r + c + i + j) % 2 * 3;
      if (mp[i][j] == 9)
        mp[i][j] = 3 ^ ((c + j) & 1) * 7 ^ ((r + i + (j < c)) & 1);
    }
  for (int i = 0; i < 2 * n; i++, cout << '\n')
    for (int j = 0; j < m; j++) cout << s[i % 2][mp[i / 2][j]];
}
