#include <bits/stdc++.h>
using namespace std;
const int N = 1200;
char c[N * 2][N];
int main() {
  int n;
  scanf("%d", &n);
  int x = N, y = 0;
  for (int i = 0; i < 2 * N; ++i) {
    for (int j = 0; j < N; ++j) {
      c[i][j] = ' ';
    }
  }
  for (int i = 0; i < n; ++i) {
    int d;
    scanf("%d", &d);
    if (i % 2 == 0) {
      while (d--) {
        c[x][y] = '/';
        --x;
        ++y;
      }
      ++x;
      --y;
    } else {
      while (d--) {
        c[x][y] = '\\';
        ++x;
        ++y;
      }
      --x;
      --y;
    }
    ++y;
  }
  int min_x = INT_MAX, max_x = INT_MIN;
  for (int i = 0; i < 2 * N; ++i) {
    for (int j = 0; j < y; ++j) {
      if (c[i][j] != ' ') {
        min_x = min(min_x, i);
        max_x = max(max_x, i);
      }
    }
  }
  for (int i = min_x; i <= max_x; ++i) {
    for (int j = 0; j < y; ++j) {
      putchar(c[i][j]);
    }
    puts("");
  }
  return 0;
}
