#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i, j;
  cin >> n;
  long long a[n], sum = 0;
  long long mx = -1111, sum1 = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    if (i % 2) {
      sum1 -= a[i];
    } else {
      sum1 += a[i];
    }
    mx = max(mx, sum1);
  }
  char ans[sum + 1][sum + 1];
  for (i = 1; i <= sum; i++) {
    for (j = 1; j <= sum; j++) {
      ans[i][j] = ' ';
    }
  }
  long long start = mx + 1;
  j = 1;
  for (i = 0; i < n; i++) {
    if (i % 2 == 0) {
      start--;
      for (long long k = 0; k < a[i]; k++) {
        ans[start][j] = '/';
        start--, j++;
      }
    } else {
      start++;
      for (long long k = 0; k < a[i]; k++) {
        ans[start][j] = '\\';
        start++, j++;
      }
    }
  }
  for (i = 1; i <= sum; i++) {
    for (j = 1; j <= sum; j++) {
      cout << ans[i][j];
    }
    cout << endl;
  }
}
