#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1e5;
int n, l, r, ll, rr;
char a[2005][2005];
int main() {
  l = 1000;
  ll = 1000;
  rr = 1000;
  r = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    if (i & 1) {
      a[l][++r] = '/';
      for (int j = 2; j <= x; j++) a[--l][++r] = '/';
      ll = min(ll, l);
    } else {
      a[l][++r] = '\\';
      for (int j = 2; j <= x; j++) a[++l][++r] = '\\';
      rr = max(rr, l);
    }
  }
  for (int i = ll; i <= rr; i++) {
    for (int j = 1; j <= r; j++) {
      if (a[i][j] == '\\' || a[i][j] == '/')
        printf("%c", a[i][j]);
      else
        printf(" ");
    }
    printf("\n");
  }
}
