#include <bits/stdc++.h>
using namespace std;
char a[2000][1000];
int main() {
  int n, s;
  cin >> n;
  int nowx = 0, nowy = 1000;
  int miny = 1000, maxy = 1000;
  for (int i = 0; i < n; i++) {
    cin >> s;
    for (int j = nowx; j < nowx + s; j++)
      if (i % 2 == 0)
        a[nowy][j] = '/', maxy = max(maxy, nowy++);
      else
        a[--nowy][j] = '\\', miny = min(miny, nowy);
    nowx += s;
  }
  for (int i = maxy; i >= miny; i--, cout << endl)
    for (int j = 0; j < nowx; j++)
      if (a[i][j])
        cout << a[i][j];
      else
        cout << " ";
  return 0;
}
