#include <bits/stdc++.h>
using namespace std;
int a[1010];
int y[1010];
char board[2000][2000];
char other(char c) {
  if (c == '/') return '\\';
  return '/';
}
int main() {
  int n, i, j;
  int mn = 0;
  while (cin >> n) {
    mn = 0;
    int len = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      len += a[i];
    }
    y[0] = 0;
    int x = -1;
    for (i = 1; i <= n; i++, x *= -1) {
      y[i] = y[i - 1] + x * a[i - 1];
      mn = min(mn, y[i]);
    }
    int mx = 0;
    for (i = 0; i <= n; i++) {
      y[i] -= mn;
      mx = max(mx, y[i]);
    }
    mn = mx;
    for (j = 0; j < mn; j++) {
      for (i = 0; i < len; i++) board[j][i] = ' ';
      board[j][i] = 0;
    }
    int pos = y[0] - 1;
    int curx = 0;
    char tp = '/';
    x = -1;
    for (i = 1; i <= n; i++, tp = other(tp), x *= -1) {
      for (j = pos; j != y[i]; j += x) board[j][curx++] = tp;
      if (x == -1) {
        board[j][curx++] = tp;
        pos = j;
      } else
        pos = j - 1;
    }
    for (i = 0; i < mn; i++) cout << board[i] << endl;
  }
}
