#include <bits/stdc++.h>
using namespace std;
template <class T>
T mymax(T a, T b) {
  return a > b ? a : b;
}
template <class T>
T mymin(T a, T b) {
  return a < b ? a : b;
}
int main() {
  int n;
  int a[1001];
  int s[1001] = {0}, sz, ymax = -1;
  int i, j, k;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    s[i] = a[i] + s[i - 1];
  }
  sz = s[n] + 1;
  char M[2002][sz];
  for (j = 2001; j >= 1; j--) {
    for (i = 0; i <= sz - 1; i++) {
      M[j][i] = ' ';
    }
  }
  int x = 1, y = 1000;
  for (i = 1; i <= n; i++) {
    j = a[i];
    int al;
    if (i % 2 == 1) {
      for (al = 1; al <= j; al++) {
        M[y][x] = '/';
        x++;
        y++;
      }
      y--;
    } else {
      for (al = 1; al <= j; al++) {
        M[y][x] = '\\';
        x++;
        y--;
      }
      y++;
    }
  }
  for (j = 2001; j >= 1; j--) {
    int f = 0;
    for (i = 1; i <= s[n]; i++) {
      if (M[j][i] != ' ') f = 1;
    }
    if (f) {
      for (i = 1; i <= s[n]; i++) {
        cout << M[j][i];
      }
      cout << "\n";
    }
  }
  return 0;
}
