#include <bits/stdc++.h>
using namespace std;
char out[2009][1009];
int a[1001];
int main() {
  int n, mx, cur;
  cin >> n >> a[0];
  int sum = 0;
  cur = mx = a[0];
  for (int i = 1; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    cur += (i % 2 == 0) ? a[i] : -1 * a[i];
    mx = max(mx, cur);
  }
  mx--;
  int cl = 0, rw = mx;
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (int k = 0; k < a[i]; k++) {
        out[mx][cl++] = '/';
        mx += (k == a[i] - 1) ? 0 : -1;
      }
    } else {
      for (int k = 0; k < a[i]; k++) {
        out[mx][cl++] = '\\';
        mx += (k == a[i] - 1) ? 0 : 1;
      }
    }
    rw = max(mx, rw);
  }
  for (int i = 0; i <= rw; i++) {
    for (int j = 0; j < cl; j++)
      if (out[i][j] == '/' || out[i][j] == '\\')
        cout << out[i][j];
      else
        cout << ' ';
    cout << "\n";
  }
  return 0;
}
