#include <bits/stdc++.h>
using namespace std;
string s[2100];
const int MAX_N = 1000;
int a[MAX_N];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int(i) = 0; (i) < (n); ++(i)) cin >> a[i];
  int y = 1050;
  int x = 0;
  for (int(i) = 0; (i) < (n); ++(i)) {
    int nx = x + a[i];
    int ny = y + (-1 + 2 * (i & 1)) * a[i];
    if (ny > y) {
      for (int i = y; i < ny; ++i) {
        int l = s[i].length();
        for (int j = l; j < x + i - y; ++j) {
          s[i] += ' ';
        }
        s[i] += '\\';
      }
    } else {
      for (int i = y; i > ny; --i) {
        int l = s[i].length();
        for (int j = l; j < x + y - i; ++j) {
          s[i] += ' ';
        }
        s[i] += '/';
      }
    }
    x = nx;
    y = ny;
    if (i & 1)
      y--;
    else
      y++;
  }
  int maxl = 0;
  for (int(i) = 0; (i) < (2100); ++(i))
    (maxl) = max((maxl), ((int)s[i].length()));
  ;
  for (int(i) = 0; (i) < (2100); ++(i)) {
    if (s[i].length() > 0) {
      for (int j = s[i].length(); j < maxl; ++j) s[i] += ' ';
    }
  }
  for (int(i) = 0; (i) < (2100); ++(i)) {
    if (s[i].length() > 0) {
      cout << s[i] << '\n';
    }
  }
  return 0;
}
