#include <bits/stdc++.h>
using namespace std;
const double EPS = 0.0000001;
const double PI = acos(-1);
const long long INFLL = 0x7FFFFFFFFFFFFFFF;
const int INF = 0x7FFFFFFF;
template <typename T>
inline void next(T &num) {
  char c;
  num = 0;
  do {
    c = getchar_unlocked();
  } while (c != EOF && c == ' ' && c == '\n' && c == '\t');
  int sign = (c == '-' ? -1 : 1);
  if (c != '-') num += (c - '0');
  while ((c = getchar_unlocked()) != EOF && c != '\n' && c != '\t' &&
         c != ' ') {
    num *= 10;
    num += (c - '0');
  }
  num *= sign;
}
inline string getstr() {
  string str;
  char k;
  while ((k = getchar_unlocked()) == ' ' || k == '\n') {
    k = getchar_unlocked();
    if (k == ' ' || k == '\n')
      continue;
    else
      break;
  }
  str.push_back(k);
  while ((k = getchar_unlocked()) != EOF && k != '\n' && k != '\t' &&
         k != '\v' && k != '\0' && k != ' ')
    str.push_back(k);
  return str;
}
char car[2000][1005];
int q[1005], n, mx = 0, mn = 0, now = 0, sta = 0;
int main() {
  next(n);
  for (int i = int(0), _b = int(n - 1); i <= _b; i++) {
    scanf("%d", &q[i]);
    now += (sta ? (-1) * q[i] : q[i]);
    mx = max(mx, now);
    mn = min(mn, now);
    sta ^= 1;
  }
  mx--;
  memset(car, ' ', sizeof(car));
  now = 0 - mn;
  sta = 0;
  int col = 0;
  for (int i = int(0), _b = int(n - 1); i <= _b; i++) {
    while (q[i]--) {
      if (sta) {
        car[now][col] = '\\';
        now--;
      } else {
        car[now][col] = '/';
        now++;
      }
      col++;
    }
    if (sta)
      now++;
    else
      now--;
    sta ^= 1;
  }
  for (int i = int(mx - mn), _b = int(0); i >= _b; i--) {
    for (int j = int(0), _b = int(col - 1); j <= _b; j++) {
      putchar(car[i][j]);
    }
    if (i) puts("");
  }
  return 0;
}
