#include <bits/stdc++.h>
using namespace std;
char s[1 << 11][1 << 10];
int main() {
  int n, a[1 << 10], i, j;
  cin >> n;
  for (i = 0; i < (1 << 11); i++) {
    for (j = 1; j < (1 << 10); j++) {
      s[i][j] = ' ';
    }
  }
  for (i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  int maxx = 1005;
  int minn = 1005;
  int ch = 1005, cl = 1;
  int pr;
  char nc;
  for (i = 1; i <= n; i++) {
    if (i % 2 == 0) {
      pr = 1;
      nc = '\\';
    } else {
      pr = -1;
      nc = '/';
    }
    for (j = 1; j <= a[i]; j++) {
      minn = min(ch, minn);
      maxx = max(ch, maxx);
      s[ch][cl] = nc;
      cl++;
      ch = ch + pr;
    }
    ch = ch + pr * (-1);
  }
  cl--;
  for (i = minn; i <= maxx; i++) {
    for (j = 1; j <= cl; j++) {
      cout << s[i][j];
    }
    cout << endl;
  }
  return 0;
}
