   import java.io.*;

    public class Q1
   {
       public static void main (String [] args) throws IOException
      {
         BufferedReader in = new BufferedReader (new FileReader ("DATA1.txt"));
         
         int [] h = new int [5];
         int [] a = new int [5];
         int t = 0;
      	
         for (int c = 0; c < 5; c++)
         {
            h [c] = Integer.parseInt (in.readLine ());
            t += Math.max (h [c] * 2 - 1, 1);
         }
         
         char [][] grid = new char [5][t + 1];
      	
         for (int X = 0; X < 5; X++)
         {
            for (int b = 0; b < t; b++)
            {
               grid [X][b] = '.';           
            }
         }
         
         t = 0;
         for (int x = 0; x < 5; x++)
         {
            if (h [x] != 0)
            {
               for (int y = 0; y < Math.max (h [x], 1); y++)
               {
                  for (int z = 0; z <= y; z++)
                  {
                     grid [z][y + t] = 'x';
                  }
               }
               for (int y = h [x]; y < h [x] * 2 - 1; y++)
               {
                  for (int z = y; z < h [x] * 2 - 1; z++)
                  {
                     grid [h [x] * 2 - z - 2][y + t] = 'x';
                  }
               
               }
            }
            t += Math.max (h [x] * 2 - 1, 1);
         }
      	
      	BufferedWriter out = new BufferedWriter (new FileWriter ("OUT1.txt"));
      	
         for (int x = 4; x >= 0; x--)
         {
            for (int y = 0; y < t; y++)
            {
               out.write ("" + grid [x][y]);
            }
            out.newLine ();
         }
      	out.close ();
      }
   }
