import java.io.*;
import java.util.*;

public class ProgramI {
	public static void main(String args[]) throws Exception {
		BufferedReader in = new BufferedReader(new FileReader("DATA1.txt"));
		PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("OUT1.txt")));
		int[] numbers = new int[5];
		int width=0;
		int maxheight=0;
		for (int i=0; i<5; i++) {
			String line = in.readLine();
			numbers[i] = Integer.parseInt(line);
			if (numbers[i] > maxheight) { maxheight = numbers[i]; }
			width += Math.abs((2*numbers[i])-1);
			//System.out.println(numbers[i]);
		}
		maxheight++;
		String buffer[][] = new String[maxheight][width];
		for (int line=0; line<maxheight; line++) {
			for (int tchar=0; tchar<width; tchar++) {
				buffer[line][tchar] = ".";
			}
		}
		int column = 0;
		for (int hill=0; hill<5; hill++) {
			if (numbers[hill] == 0) {
				column++;
			}else{
				for (int height=1; height<=numbers[hill]; height++) {
					for (int c=1; c<=height; c++) {
						buffer[maxheight-c][column] = "x";
					}
					column++;
				}
				for (int height=(numbers[hill]-1); height>=1; height--) {
					for (int c=1; c<=height; c++) {
						buffer[maxheight-c][column] = "x";
					}
					column++;
				}
			}
		}
		for (int line=0; line<maxheight; line++) {
			for (int c=0; c<width; c++) {
				out.print(buffer[line][c]);
			}
			out.println();
		}
		out.close();
		System.exit(0);
	}
}
