#include <bits/stdc++.h>
using namespace std;
int a[1001][1001];
int b[1001];
int main() {
  int n;
  scanf("%d", &n);
  int i, j;
  int high = 0, low = 0;
  int s = 0, f = -1;
  for (i = 1; i <= n; i++) {
    scanf("%d", &b[i]);
    s = s + b[i] * f;
    if (s > high) high = s;
    if (s < low) low = s;
    f = -f;
  }
  s = high - low;
  int x = 1, k = -low, tx = 1;
  f = -1;
  for (i = 1; i <= n; i++) {
    a[k][x] = tx;
    for (j = 2; j <= b[i]; j++) {
      x++;
      k += f;
      a[k][x] = tx;
    }
    f = -f;
    x++;
    tx = -tx;
  }
  for (i = 1; i <= s; i++) {
    for (j = 1; j <= x - 1; j++) {
      if (a[i][j] == 0)
        printf(" ");
      else if (a[i][j] == 1)
        printf("/");
      else
        printf("\\");
    }
    printf("\n");
  }
  return 0;
}
