#include <bits/stdc++.h>
using namespace std;
char arr[(int)(5e3)][(int)(5e3)];
int maxx = int(2e3), minn = int(2e3), high = int(2e3), idx;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  for (int i = 0; i < 5e3; i++)
    for (int j = 0; j < 5e3; j++) arr[i][j] = ' ';
  int n, a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (i % 2) {
      for (int j = 0; j < a; j++) {
        arr[high][idx] = '\\';
        high++;
        idx++;
      }
      high--;
    } else {
      for (int j = 0; j < a; j++) {
        arr[high][idx] = '/';
        high--;
        idx++;
      }
      high++;
    }
    minn = min(high, minn);
    maxx = max(high, maxx);
  }
  for (int i = minn; i <= maxx; i++) {
    for (int j = 0; j < idx; j++) {
      cout << arr[i][j];
    }
    cout << '\n';
  }
  return 0;
}
