#include <bits/stdc++.h>
using namespace std;
bool debug = 1;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
long long ln, lk, lm;
int a[1020], x[1020], y[1020], MaxY = 0, MinY = 0;
char s[1020][1020];
void pp() {
  for (int i = MaxY - MinY - 1; i >= 0; i--) {
    for (int j = 0; j < x[n]; j++) {
      printf("%c", s[j][i] == '\0' ? ' ' : s[j][i]);
    }
    puts("");
  }
}
void paint(int x1, int y1, int x2, int y2) {
  if (y1 < y2) {
    for (int q = y1, p = x1; q < y2; q++, p++) {
      s[p][q] = '/';
    }
  } else {
    for (int q = y1 - 1, p = x1; q >= y2; q--, p++) {
      s[p][q] = '\\';
    }
  }
}
int main() {
  scanf("%d", &n);
  for (int(i) = 1; (i) <= (int)(n); (i)++) scanf("%d", a + i);
  for (int(i) = 1; (i) <= (int)(n); (i)++) {
    x[i] = x[i - 1] + a[i];
    y[i] = y[i - 1] + (i % 2 == 1 ? 1 : -1) * a[i];
    MaxY = max(y[i], MaxY);
    MinY = min(MinY, y[i]);
  }
  for (int(i) = 1; (i) <= (int)(n); (i)++) {
    paint(x[i - 1], y[i - 1] - MinY, x[i], y[i] - MinY);
  }
  pp();
  return 0;
}
