for i in range(1,8):
     for j in range(1,5):
          if (i==1 and j==2) or (i==3 and j==4) or (i==6 and j==3) or (i==6 and j==1) or (i==3 and j==3):
               print("#",end='')
          else:
               print("$",end='')
     print()
     




        
     
