#include <bits/stdc++.h>
using namespace std;
vector<int> V;
char M[1010][1010];
int main() {
  ios::sync_with_stdio(false);
  int n, x, total = 0;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    V.push_back(x);
    total += x;
  }
  int posi = -1, MAX = 0;
  while (1) {
    posi++;
    memset(M, ' ', sizeof(M));
    int col = 0, pos = posi;
    MAX = max(MAX, pos);
    for (int i = 0; i < n; i++) {
      MAX = max(MAX, pos);
      if (pos < 0 || pos > 1000) break;
      int aux = V[i];
      for (int j = 1; j <= aux; j++) {
        if (i % 2 == 0) {
          M[pos][col] = '/';
          if (j != aux) pos--;
        } else {
          M[pos][col] = '\\';
          if (j != aux) pos++;
        }
        if (pos < 0 || pos > 1000) break;
        col++;
        MAX = max(MAX, pos);
      }
    }
    if (col == total) {
      break;
    }
  }
  for (int i = 0; i <= MAX; i++) {
    for (int j = 0; j < total; j++) {
      cout << M[i][j];
    }
    cout << endl;
  }
  return 0;
}
