// The "Dwite1" class.
import java.awt.*;
import java.io.*;
public class Dwite1
{
    public static void main (String[] args) throws IOException
    {
	BufferedReader BR = new BufferedReader (new FileReader ("DATA1.txt"));
	PrintWriter PW = new PrintWriter (new FileWriter ("OUT1.txt"));
	int count = 0;
	String string[] = new String [35];
	for (int i = 0 ; i < 5 ; i++)
	{
	    int x = Integer.parseInt (BR.readLine ());
	    count += x;
	    switch (x)
	    {
		case 1:
		    {
			string [count - 1] = "#";
			break;
		    }
		case 3:
		    {
			string [count - 3] = ".#.";
			string [count - 2] = "###";
			string [count - 1] = ".#.";
			break;
		    }
		case 5:
		    {
			string [count - 5] = "..#..";
			string [count - 4] = ".###.";
			string [count - 3] = "#####";
			string [count - 2] = ".###.";
			string [count - 1] = "..#..";
			break;
		    }
		case 7:
		    {
			string [count - 7] = "...#...";
			string [count - 6] = "..###..";
			string [count - 5] = ".#####.";
			string [count - 4] = "#######";
			string [count - 3] = ".#####.";
			string [count - 2] = "..###..";
			string [count - 1] = "...#...";
			break;
		    }
	    }

	}
	for (int i = 0 ; i < count ; i++)
	    PW.println (string [i]);
	PW.close ();
    } // main method
} // Dwite1 class



