#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 + 123;
char res[maxn][maxn];
int a[maxn];
int n;
int sumx, maxy, miny, nowy;
int main() {
  scanf("%d", &n);
  sumx = maxy = miny = nowy = 0;
  int flag = 1;
  for (int i = 0; i < n; ++i) {
    scanf("%d", a + i);
    sumx += a[i];
    nowy += flag * a[i];
    flag = -flag;
    if (nowy > maxy) maxy = nowy;
    if (nowy < miny) miny = nowy;
  }
  for (int i = 0; i < maxy - miny; ++i)
    for (int j = 0; j < sumx; ++j) res[i][j] = ' ';
  int py = maxy - 1, px = 0;
  flag = 1;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < a[i]; ++j) {
      if (flag == 1)
        res[py][px] = '/';
      else
        res[py][px] = '\\';
      px++;
      if (j != a[i] - 1) py -= flag;
    }
    flag = -flag;
  }
  for (int i = 0; i < maxy - miny; ++i, puts(""))
    for (int j = 0; j < sumx; ++j) putchar(res[i][j]);
  return 0;
}
