#include <bits/stdc++.h>
using namespace std;
vector<vector<char> > arr;
int coun;
int v1 = 1000, v2;
void up(int k) {
  for (int i = 0; i < k; i++) {
    arr[v1][v2] = '/';
    v1--;
    v2++;
  }
  v1++;
}
void down(int k) {
  for (int i = 0; i < k; i++) {
    arr[v1][v2] = '\\';
    v1++;
    v2++;
  }
  v1--;
}
int n, m, prom, peop, h = 2000;
string s;
int main() {
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    m += a[i];
  }
  arr.resize(h);
  for (int i = 0; i < h; i++) arr[i].resize(m);
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0)
      up(a[i]);
    else
      down(a[i]);
  }
  for (int i = 0; i < arr.size(); i++) {
    int k = 0;
    for (int j = 0; j < m; j++)
      if (arr[i][j] == '/' || arr[i][j] == '\\') {
        k = 1;
        break;
      }
    if (k == 0) {
      arr.erase(arr.begin() + i);
      i--;
    }
  }
  for (int i = 0; i < arr.size(); i++) {
    for (int j = 0; j < arr[i].size(); j++)
      if (arr[i][j] == '/' || arr[i][j] == '\\')
        cout << arr[i][j];
      else
        cout << " ";
    if (i != arr.size() - 1) cout << endl;
  }
  return 0;
}
