#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, n = 0, m = 0, max = 0, min = 0, k = 0;
  cin >> a;
  int b[a];
  for (int i = 1; i <= a; i++) cin >> b[i];
  min = b[1];
  for (int i = 1; i <= a; i++) {
    m = m + b[i];
    if (i % 2 == 0) n = n - b[i];
    if (i % 2 == 1) n = n + b[i];
    if (max < n) max = n;
    if (min > n) min = n;
  }
  if (min < 0) min = min * -1;
  n = max + min, k = n - min - 1;
  char c[n + 1][m + 1];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      c[i][j] = ' ';
    }
  }
  for (int i = 1, t = 0; i <= a; i++) {
    if (i % 2 == 0) {
      for (int j = 0; j < b[i]; j++) {
        c[k][t] = '\\';
        k++;
        t++;
      }
      k--;
    } else {
      for (int j = 0; j < b[i]; j++) {
        c[k][t] = '/';
        k--;
        t++;
      }
      k++;
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cout << c[i][j];
    }
    cout << endl;
  }
}
