



import os







def  lowerCAmelCase_	():





			"""simple docstring"""


			with open(os.path.dirname(lowerCAmelCase__  ) + """/grid.txt"""  ) as f:
						UpperCAmelCase_:		Optional[Any]							      =     []  # noqa: E741
						for _ in range(2_0  ):
									l.append([int(lowerCAmelCase__  ) for x in f.readline().split()]  )

						UpperCAmelCase_:		List[str]							      =     0

						# right
						for i in range(2_0  ):
									for j in range(1_7  ):
												UpperCAmelCase_:		List[str]							      =     l[i][j] * l[i][j + 1] * l[i][j + 2] * l[i][j + 3]
												if temp > maximum:
															UpperCAmelCase_:		Union[str, Any]							      =     temp

        # down
						for i in range(1_7  ):
									for j in range(2_0  ):
												UpperCAmelCase_:		Any							      =     l[i][j] * l[i + 1][j] * l[i + 2][j] * l[i + 3][j]
												if temp > maximum:
															UpperCAmelCase_:		List[Any]							      =     temp

        # diagonal 1
						for i in range(1_7  ):
									for j in range(1_7  ):
												UpperCAmelCase_:		Any							      =     l[i][j] * l[i + 1][j + 1] * l[i + 2][j + 2] * l[i + 3][j + 3]
												if temp > maximum:
															UpperCAmelCase_:		Optional[Any]							      =     temp

        # diagonal 2
						for i in range(1_7  ):
									for j in range(3		,						2_0  ):
												UpperCAmelCase_:		List[Any]							      =     l[i][j] * l[i + 1][j - 1] * l[i + 2][j - 2] * l[i + 3][j - 3]
												if temp > maximum:
															UpperCAmelCase_:		Optional[Any]							      =     temp
						return maximum


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











import numpy as np







def  lowerCAmelCase_	(lowerCAmelCase__:		np.ndarray		,						lowerCAmelCase__:		float  ):





			"""simple docstring"""


			return np.where(vector > 0		,						lowerCAmelCase__		,						(alpha * (np.exp(lowerCAmelCase__  ) - 1))  )


if __name__ == "__main__":
	import doctest

	doctest.testmod()






