#include <bits/stdc++.h>
using namespace std;
int const N = 1000 + 20, MX = 2000 + 20;
int n, a[N], x, y = 1000, mn = 1000, mx = 1000;
char s[MX][MX];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < MX; i++)
    for (int j = 0; j < MX; j++) s[i][j] = ' ';
  for (int i = 0; i < n; i++) {
    while (a[i]) {
      a[i]--;
      if ((i & 1)) {
        s[y][x] = '\\';
        x++;
        if (a[i]) y++;
        mx = max(mx, y);
      } else {
        s[y][x] = '/';
        x++;
        if (a[i]) y--;
        mn = min(mn, y);
      }
    }
  }
  for (int i = mn; i <= mx; i++) {
    for (int j = 0; j < x; j++) cout << s[i][j];
    cout << '\n';
  }
  return 0;
}
