#include <bits/stdc++.h>
using namespace std;
set<pair<int, int> > up, down;
int N, a, x, y, maxY = 0, minY = 0, maxX[3000], maxX2;
stringstream ss;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> N;
  for (int(i) = 1; (i) <= (N); (i)++) {
    cin >> a;
    if (i & 1) {
      while (a--) {
        maxX[y + 1500] = x;
        maxX2 = max(maxX2, x);
        up.insert(make_pair(x++, y++));
      }
      maxY = max(y - 1, maxY);
    } else {
      while (a--) {
        maxX[y + 1500] = x;
        maxX2 = max(maxX2, x);
        down.insert(make_pair(x++, --y));
      }
      minY = min(y, minY);
    }
  }
  for (int curY = maxY; curY >= minY; curY--) {
    for (int curX = 0; curX <= maxX2; curX++) {
      if (up.find(make_pair(curX, curY)) != up.end()) {
        ss << "/";
      } else if (down.find(make_pair(curX, curY)) != down.end()) {
        ss << "\\";
      } else {
        ss << " ";
      }
    }
    ss << endl;
  }
  cout << ss.str();
}
