#include <bits/stdc++.h>
using namespace std;
char gg[30000][1500];
int main() {
  int n, a, x, y, i, j, mnx, mx, tt;
  scanf("%d", &n);
  x = mx = 15000;
  mnx = 100000000;
  mx = 15000;
  y = tt = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (!(i % 2)) {
      for (j = 0; j < a; gg[x--][y++] = '/', j++)
        ;
      x++;
    } else {
      for (j = 0; j < a; gg[x++][y++] = '\\', j++)
        ;
      x--;
    }
    mnx = mnx > x ? x : mnx;
    mx = mx < x ? x : mx;
    tt += a;
  }
  for (i = mnx; i <= mx; i++) {
    for (j = 0; j < tt; j++) {
      if (gg[i][j] == '/' || gg[i][j] == '\\')
        printf("%c", gg[i][j]);
      else
        printf(" ");
    }
    printf("\n");
  }
  return 0;
}
