#include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
char a[maxn][maxn];
int n, s[maxn];
int main() {
  scanf("%d", &n);
  int r = 0, c = 0;
  int max1 = 0, sum = 0, biao = 1;
  for (int i = 1; i <= n; i++) {
    scanf("%d", s + i);
    if (i % 2 == 1)
      sum += s[i];
    else
      sum -= s[i];
    if (max1 < sum) {
      max1 = sum;
      biao = i;
    }
    if (r > sum) r = sum;
    c += s[i];
  }
  r = max1 - r;
  sum = 0;
  for (int i = 1; i <= biao; i++) sum += s[i];
  for (int i = 0; i <= 1000; i++)
    for (int j = 0; j <= 1000; j++) a[i][j] = ' ';
  int x = 0, y = sum + 1;
  for (int i = biao; i >= 1; i--) {
    for (int j = s[i]; j > 0; j--)
      if (i & 1) {
        x++;
        y--;
        a[x][y] = '/';
      } else
        a[--x][--y] = '\\';
    if (i & 1)
      x++;
    else
      x--;
  }
  x = 0, y = sum;
  for (int i = biao + 1; i <= n; i++) {
    for (int j = s[i]; j >= 1; j--)
      if (i & 1)
        a[--x][++y] = '/';
      else
        a[++x][++y] = '\\';
    if (i & 1)
      x--;
    else
      x++;
  }
  for (int i = 1; i <= r; i++) {
    for (int j = 1; j <= c; j++) cout << a[i][j];
    cout << endl;
  }
  return 0;
}
