#include <bits/stdc++.h>
using namespace std;
int kkaass = 1;
int n;
vector<pair<int, int> > vec;
char board[4009][4009];
void draw(pair<int, int> a, pair<int, int> b) {
  int lim = abs(a.first - b.first);
  if (a.second <= b.second) {
    for (int i = 0; i < lim; i++) board[a.first + i][1010 + a.second + i] = 'L';
  } else {
    for (int i = 0; i < lim; i++)
      board[a.first + i][1010 + a.second - i - 1] = 'R';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  while (cin >> n) {
    vec.push_back(make_pair(0, 0));
    int a = 0, b = 0;
    pair<int, int> la = make_pair(0, 0), lb = make_pair(0, 0);
    for (int i = 0; i < n; i++) {
      int v;
      cin >> v;
      a += v;
      if (i % 2 == 0)
        b += v;
      else
        b -= v;
      la.second = a;
      lb = make_pair(min(lb.first, b), max(lb.second, b));
      vec.push_back(make_pair(a, b));
    }
    sort(vec.begin(), vec.end());
    memset(board, '.', sizeof(board));
    for (int i = 0; i < (int)vec.size() - 1; i++) draw(vec[i], vec[i + 1]);
    for (int j = lb.second + 1010 - 1; j >= lb.first + 1010 - 1; j--) {
      for (int i = 0; i < la.second; i++) {
        if (board[i][j] == 'L')
          cout << '/';
        else if (board[i][j] == 'R')
          cout << '\\';
        else
          cout << ' ';
      }
      cout << endl;
    }
  }
  return 0;
}
