import java.io.*;
import hsa.Console;

// The "Rhombus" class.
public class Rhombus
{
    public static void main (String[] args) throws IOException
    {

	// Open up the input and output file for IO purpose
	FileReader inFile = new FileReader ("DATA1.txt");
	FileWriter outFile = new FileWriter ("OUT1.txt");

	// Link the input and output file for
	BufferedReader in = new BufferedReader (inFile);
	BufferedWriter out = new BufferedWriter (outFile);

	String line;

	// Keep reading as long as not end of file (eof)
	while ((line = in.readLine ()) != null)
	{
	    if (line.equals ("1"))
	    {
		out.write ("#");
		out.newLine ();
	    }
	    else if (line.equals ("3"))
	    {
		out.write (".#.");
		out.newLine ();
		out.write ("###");
		out.newLine ();
		out.write (".#.");
		out.newLine ();
	    }
	    else if (line.equals ("5"))
	    {
		out.write ("..#..");
		out.newLine ();
		out.write (".###.");
		out.newLine ();
		out.write ("#####");
		out.newLine ();
		out.write (".###.");
		out.newLine ();
		out.write ("..#..");
		out.newLine ();
	    }
	    else if (line.equals ("7"))
	    {
		out.write ("...#...");
		out.newLine ();
		out.write ("..###..");
		out.newLine ();
		out.write (".#####.");
		out.newLine ();
		out.write ("#######");
		out.newLine ();
		out.write (".#####.");
		out.newLine ();
		out.write ("..###..");
		out.newLine ();
		out.write ("...#...");
		out.newLine ();
	    }
	    out.flush ();

	}
	out.close ();


    } // main method
} // End of Class



