#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9, maxn = (int)1e5 + 1;
const double eps = (double)1e-8;
const int mod = (int)1000000009;
int n, a[1001], x, y, xx, yy, z, my, mx;
vector<pair<int, bool> > b[3000];
string c, st;
int main() {
  my = 1500;
  z = 1500;
  cin >> n;
  x = 0;
  y = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    xx = x;
    yy = y;
    x += a[i];
    if (i & 1) {
      y += a[i];
      for (int j = yy; j < y; j++)
        b[z + j].push_back(make_pair(xx + j - yy, 1));
    } else {
      y -= a[i];
      for (int j = yy - 1; j >= y; j--)
        b[z + j].push_back(make_pair(xx + (yy - j - 1), 0));
    }
    my = max(my, y + z);
  }
  st = "";
  for (int i = 0; i < x; i++) st += ' ';
  mx = x;
  for (int i = my - 1;; i--) {
    c = st;
    if (b[i].size() == 0) break;
    for (int j = 0; j < b[i].size(); j++) {
      if (b[i][j].second)
        c[b[i][j].first] = '/';
      else
        c[b[i][j].first] = char(92);
    }
    cout << c << endl;
  }
  return 0;
}
