#include <bits/stdc++.h>
using namespace std;
char **d;
int main() {
  int n;
  cin >> n;
  int *a = new int[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int m = 0;
  for (int i = 0; i < n; i++) m += a[i];
  int max_y = 0;
  int min_y = 0;
  int y = 0;
  for (int i = 0; i < n; i++)
    if (i % 2) {
      y -= a[i];
      if (y < min_y) min_y = y;
    } else {
      y += a[i];
      if (y > max_y) max_y = y;
    }
  int row_count = max_y - min_y;
  d = new char *[row_count];
  for (int i = 0; i < row_count; i++) {
    d[i] = new char[m + 1];
    for (int j = 0; j < m; j++) d[i][j] = ' ';
    d[i][m] = '\0';
  }
  y = max_y - 1;
  int x = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < a[i]; j++)
      if (i % 2 == 0) {
        d[y][x] = '/';
        x++;
        if (j != a[i] - 1) y--;
      } else {
        d[y][x] = '\\';
        if (j != a[i] - 1) y++;
        x++;
      }
  for (int i = 0; i < row_count; i++) printf("%s\n", d[i]);
  return 0;
}
