#include <bits/stdc++.h>
using namespace std;
struct xx {
  int x, y;
} lu, rd;
int a[1005];
int p[1005][1005];
int main() {
  int n;
  cin >> n;
  lu.x = 1005;
  lu.y = 0;
  rd.x = 0;
  rd.y = 1005;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int x, y;
  x = y = 0;
  for (int i = 1; i <= n; i++) {
    int f = 0;
    while (a[i]--) {
      if (i & 1) {
        x++;
        if (f == 0)
          f = 1;
        else
          y++;
        p[x][y] = -1;
        lu.x = (lu.x > x ? x : lu.x);
        lu.y = (lu.y > y ? lu.y : y);
        rd.x = (rd.x > x ? rd.x : x);
        rd.y = (rd.y > y ? y : rd.y);
      } else {
        x++;
        if (f == 0)
          f = 1;
        else
          y--;
        p[x][y] = 1;
        lu.x = (lu.x > x ? x : lu.x);
        lu.y = (lu.y > y ? lu.y : y);
        rd.x = (rd.x > x ? rd.x : x);
        rd.y = (rd.y > y ? y : rd.y);
      }
    }
  }
  for (int y = lu.y; y >= rd.y; y--) {
    for (int x = lu.x; x <= rd.x; x++) {
      if (p[x][y] == -1)
        printf("/");
      else if (p[x][y] == 1)
        printf("\\");
      else
        printf(" ");
    }
    printf("\n");
  }
  return 0;
}
