#include <bits/stdc++.h>
using namespace std;
char grid[1001][1001];
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  memset(grid, ' ', sizeof(char) * 1001 * 1001);
  int i, j, k, mini = 0, mac = -1, cur = 0, n, init, sum = 0;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    if (i % 2 == 0)
      cur += a[i];
    else
      cur -= a[i];
    mac = max(cur, mac);
    mini = min(cur, mini);
  }
  init = abs(mini);
  int temp, last = 0;
  char ch;
  k = 0;
  for (i = 0; i < n; i++) {
    if (i % 2 == 0) {
      temp = 1;
      ch = '/';
    } else {
      temp = -1;
      ch = '\\';
    }
    k = init;
    for (j = 0; j < a[i]; j++, k += temp, last++) {
      grid[k][last] = ch;
    }
    init = k - temp;
  }
  for (i = 1000; i >= 0; i--) {
    for (j = 0; j < sum; j++) {
      if (grid[i][j] != ' ') {
        for (k = 0; k < sum; k++) cout << grid[i][k];
        cout << "\n";
        break;
      }
    }
  }
  return 0;
}
