


'''simple docstring'''
import os


def       a				(      )  ->     int:



     '''simple docstring'''






     with open(os.path.dirname(__a       ) + '''/grid.txt'''       ) as f:
          UpperCamelCase__       :Dict							 =			[]  # noqa: E741
          for _ in range(20       ):
               l.append([int(__a       ) for x in f.readline().split()]       )

          UpperCamelCase__       :Union[str, Any]							 =			0

          # right
          for i in range(20       ):
               for j in range(17       ):
                    UpperCamelCase__       :Dict							 =			l[i][j] * l[i][j + 1] * l[i][j + 2] * l[i][j + 3]
                    if temp > maximum:
                         UpperCamelCase__       :Optional[int]							 =			temp

        # down
          for i in range(17       ):
               for j in range(20       ):
                    UpperCamelCase__       :Optional[int]							 =			l[i][j] * l[i + 1][j] * l[i + 2][j] * l[i + 3][j]
                    if temp > maximum:
                         UpperCamelCase__       :List[str]							 =			temp

        # diagonal 1
          for i in range(17       ):
               for j in range(17       ):
                    UpperCamelCase__       :Dict							 =			l[i][j] * l[i + 1][j + 1] * l[i + 2][j + 2] * l[i + 3][j + 3]
                    if temp > maximum:
                         UpperCamelCase__       :Union[str, Any]							 =			temp

        # diagonal 2
          for i in range(17       ):
               for j in range(3			, 20       ):
                    UpperCamelCase__       :Tuple							 =			l[i][j] * l[i + 1][j - 1] * l[i + 2][j - 2] * l[i + 3][j - 3]
                    if temp > maximum:
                         UpperCamelCase__       :Tuple							 =			temp
          return maximum


if __name__ == "__main__":
  print(solution())



'''simple docstring'''
import socket


def       a				(      )  ->     Dict:



					'''simple docstring'''






					UpperCamelCase__       :int							 =			socket.socket(socket.AF_INET			, socket.SOCK_STREAM       )
					UpperCamelCase__       :List[Any]							 =			socket.gethostname()
					UpperCamelCase__       :List[str]							 =			12312

					sock.connect((host, port)       )
					sock.send(B'''Hello server!'''       )

					with open('''Received_file'''			, '''wb'''       ) as out_file:
										print('''File opened'''       )
										print('''Receiving data...'''       )
										while True:
															UpperCamelCase__       :str							 =			sock.recv(1024       )
															if not data:
																				break
															out_file.write(__a       )

					print('''Successfully received the file'''       )
					sock.close()
					print('''Connection closed'''       )


if __name__ == "__main__":
		main()