#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, x, height = 0, space = 0;
  cin >> n;
  vector<tuple<int, int, char> > v;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (i & 1) {
      int pos = height;
      for (int j = height; j <= pos + x - 1; j++) {
        v.push_back(make_tuple(++height, -1 * space++, '/'));
      }
      height++;
    } else {
      int pos = height;
      for (int j = height; j >= pos - x + 1; j--) {
        v.push_back(make_tuple(--height, -1 * space++, '\\'));
      }
      height--;
    }
  }
  sort(v.begin(), v.end());
  reverse(v.begin(), v.end());
  v.push_back(v[v.size() - 1]);
  for (int i = 0; i < v.size() - 1; i++) {
    for (int j = 1; j <= space; j++) {
      if (j == -1 * get<1>(v[i]) + 1) {
        cout << get<2>(v[i]);
        if (get<0>(v[i]) == get<0>(v[i + 1])) i++;
      } else
        cout << " ";
    }
    cout << '\n';
  }
  return 0;
}
