#include <bits/stdc++.h>
using namespace std;
char s[2005][2005];
int main() {
  int n;
  cin >> n;
  int mxH = 1000, mnH = 1000;
  int width = 0;
  int H = 1000;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    for (int j = width; j < width + x; j++) {
      if (i % 2 == 0) {
        s[H][j] = '/';
        H++;
        mxH = max(mxH, H);
      } else {
        H--;
        s[H][j] = '\\';
        mnH = min(mnH, H);
      }
    }
    width += x;
  }
  for (int i = mxH - 1; i >= mnH; i--) {
    for (int j = 0; j < width; j++) {
      if (s[i][j] != NULL)
        cout << s[i][j];
      else
        cout << " ";
    }
    cout << endl;
  }
  return 0;
}
