//Full Metal Compiler
#include <fstream>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <string>
#include <deque>
#include <vector>
#include <set>
#include <list>
#include <cmath>
#include <map>
using namespace std;

int main() {
	ifstream fin("data1.txt");
	ofstream fout("out1.txt");

	int i,j,k,l,c=0,n=5,tot=0;
	//char grid[50][5];
	vector<string> grid;
	string temp;
	//memset(grid,'.',sizeof(grid));
	while (n--) {
		fin >> i;
		tot+=i;
		for (k=0;k<i;k++) {
			temp="";
			for (j=0;j<=k;j++) {
				temp+='x';
			}
			for (j=j;j<5;j++)
				temp+='.';
			if (temp!=".....")
				grid.push_back(temp);
		}
		for (k=i-1;k>-1;k--) {
			temp="";
			for (j=0;j<k;j++) {
				temp+='x';
			}
			for (j=j;j<5;j++)
				temp+='.';
			if (temp!=".....")
				grid.push_back(temp);
		}
	/*
		for (j=c;j<c+i;j++) {
			for (k=0;k<i;k++) {
				for (l=0;l<=k+1;l++) {
					grid[j][l]='x';
				}
			}
		}
		if (c==j)
			c++;
		else
			c=j;*/
		if (!i) {
			temp=".....";
			grid.push_back(temp);
		}
	}

	for (i=4;i>-1;i--) {
		for (j=0;j<grid.size();j++) {
			fout << grid[j][i];
		}
		fout << "\n";
	}
	
	fin.close();
	fout.close();
	return 0;
}

