#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x *= 10;
    x += ch - '0';
    ch = getchar();
  }
  return x * f;
}
int n, tot, mx = 1000, mn = 1000, x, y = 1000;
int a[1005];
int b[2005][2005];
int main() {
  n = read();
  for (int i = 1; i <= n; i++) a[i] = read(), tot += a[i];
  for (int i = 1; i <= n; i++) {
    x++;
    if (i & 1) {
      a[i]--;
      b[x][y] = 1;
      while (a[i]--) {
        x++;
        y++;
        b[x][y] = 1;
      }
      mx = max(mx, y);
    } else {
      a[i]--;
      b[x][y] = 2;
      while (a[i]--) {
        x++;
        y--;
        b[x][y] = 2;
      }
      mn = min(mn, y);
    }
  }
  for (int i = mx; i >= mn; i--) {
    for (int j = 1; j <= tot; j++)
      if (b[j][i] == 1)
        printf("/");
      else if (b[j][i] == 2)
        printf("\\");
      else
        printf(" ");
    printf("\n");
  }
  return 0;
}
