#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> A(n);
  for (int i = 0; i < n; ++i) cin >> A[i];
  vector<int> ans;
  int cur = 0, total = 0, mn = 0, mx = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < A[i]; ++j) {
      ans.push_back(cur);
      cur += i % 2 ? 1 : -1;
    }
    mn = min(mn, ans[ans.size() - 1]);
    mx = max(mx, ans[ans.size() - 1]);
    cur -= i % 2 ? 1 : -1;
    total += A[i];
  }
  vector<vector<int> > grid(mx - mn + 1, vector<int>(total, ' '));
  int t = 1;
  for (int i = 0; i < ans.size(); ++i) {
    if (i > 0 && ans[i] == ans[i - 1]) t = !t;
    grid[ans[i] - mn][i] = t ? '/' : '\\';
  }
  for (int i = 0; i < grid.size(); ++i) {
    for (int j = 0; j < grid[i].size(); ++j) {
      cout << (char)grid[i][j];
    }
    cout << "\n";
  }
  return 0;
}
