#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1010;
static int d[2 * MaxN][MaxN];
int main() {
  int n;
  cin >> n;
  int x = 0, y = 1000;
  int MaxY = 999;
  int MinY = 999;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < a; j++) {
      if (i % 2 == 0) {
        d[y][x] = 1;
        y++;
      } else {
        d[y][x] = -1;
        y--;
      }
      x++;
      MaxY = max(MaxY, y);
      MinY = min(MinY, y);
    }
    if (i % 2 == 0) {
      y--;
    } else {
      y++;
    }
  }
  for (int i = MaxY - 1; i > MinY; i--) {
    for (int j = 0; j < x; j++) {
      if (d[i][j] == 0) {
        cout << " ";
      } else if (d[i][j] == 1) {
        cout << "/";
      } else {
        cout << '\\';
      }
    }
    cout << endl;
  }
  return 0;
}
