#include <bits/stdc++.h>
using namespace std;
int n, maxY = 0, minY = 0;
vector<pair<int, int> > mas;
char out[2005][2005];
int k = 0;
int main() {
  scanf("%d", &n);
  mas.push_back(make_pair(0, 0));
  for (int i = 0; i < 2005; i++) {
    for (int j = 0; j < 2005; j++) {
      out[i][j] = ' ';
    }
  }
  for (int i = 0; i < n; i++) {
    int temp;
    scanf("%d", &temp);
    mas.push_back(
        make_pair(mas[i].first + temp, mas[i].second + temp * pow(-1, i & 1)));
    if (mas[i + 1].second > maxY) maxY = mas[i + 1].second;
    if (mas[i + 1].second < minY) minY = mas[i + 1].second;
  }
  for (int i = 1; i <= n; i++) {
    if (i & 1) {
      for (int j = mas[i - 1].second; j < mas[i].second; j++) {
        out[k++][maxY - j] = '/';
      }
    } else {
      for (int j = mas[i - 1].second; j > mas[i].second; j--) {
        out[k++][maxY - j + 1] = '\\';
      }
    }
  }
  for (int i = 1; i <= maxY - minY; i++) {
    for (int j = 0; j < k; j++) {
      printf("%c", out[j][i]);
    }
    printf("\n");
  }
  return 0;
}
