/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void horizon(int x){
		int i;
		for(i=0;i<x;i++){
			System.out.print("#");
		}
		System.out.println();
	}
	public static void square(int x){
		int i;
		for(i=0;i<x;i++){
			horizon(x);
		}
	}
	public static void enix(int x){
		int i;
		for(i=0;i<=x;i++){
			square(i);
		}
	}
	public static void main (String[] args) throws java.lang.Exception
	{
	enix(4);
	}
}