#include <bits/stdc++.h>
using namespace std;
int a[1010], w[1010];
int main() {
  int n;
  cin >> n;
  int p = 0, pmin = 0, pmax = 0, type = 1, m = 0;
  for (int i = (1); i <= (n); ++i) {
    int d;
    cin >> d;
    m++;
    w[m] = type;
    a[m] = p;
    pmax = max(pmax, p);
    pmin = min(pmin, p);
    for (int j = (2); j <= (d); ++j) {
      m++;
      if (type == 1)
        p++;
      else
        p--;
      w[m] = type;
      a[m] = p;
      pmax = max(pmax, p);
      pmin = min(pmin, p);
    }
    type = 3 - type;
  }
  for (int i = (pmax); i >= (pmin); --i) {
    for (int j = (1); j <= (m); ++j)
      if (a[j] == i) {
        if (w[j] == 1)
          cout << "/";
        else if (w[j] == 2)
          cout << "\\";
      } else
        cout << " ";
    cout << endl;
  }
  return 0;
}
