

#pattern in python:
####
####
####
####

for i in range(0,4):
    for j in range(0,4):
        print("#",end="")
    print()

print()

#pattern
#
##
###
####
for i in range(1,5):
    print("#"*i)

#pattern 
####
###
##
#
print()
for k in range(4,0,-1):
    print("#"*k)