#include <bits/stdc++.h>
using namespace std;
const int N = 1000;
char mp[N * 2 + 5][N + 5];
int num[N + 5];
int main() {
  int n;
  cin >> n;
  int cx = N, cy = 0, up = 0, down = N;
  memset(num, -1, sizeof(num));
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (i % 2 == 0) {
      while (a--) {
        mp[cx][cy] = '/';
        num[cx] = cy;
        cx++;
        cy++;
      }
      cx--;
      up = max(cx, up);
      down = min(cx, down);
    } else {
      while (a--) {
        mp[cx][cy] = '\\';
        num[cx] = cy;
        cx--;
        cy++;
      }
      cx++;
      up = max(cx, up);
      down = min(cx, down);
    }
  }
  int ri = 0;
  for (int i = down; i <= up; i++) {
    ri = max(ri, num[i]);
  }
  for (int i = up; i >= down; i--) {
    if (num[i] != -1) {
      for (int j = 0; j <= ri; j++) {
        if (mp[i][j] == 0)
          putchar(' ');
        else
          putchar(mp[i][j]);
      }
      puts("");
    }
  }
  return 0;
}
