



"""simple docstring"""







import os



def      __UpperCAmelCase      (    )							->      int:
		with open(os.path.dirname(__lowerCamelCase	) + '''/grid.txt'''	) as f:
				lowercase__   :    Optional[int]				=			[]  # noqa: E741
				for _ in range(20	):
						l.append([int(__lowerCamelCase	) for x in f.readline().split()]	)

				lowercase__   :    Optional[int]				=			0

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

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

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

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


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







def   a_    ( lowerCAmelCase_      :			int	):

   if p < 2:
      raise ValueError('p should not be less than 2!'	)
   elif p == 2:
      return True

   __lowerCAmelCase								=	4
   __lowerCAmelCase								=	(1 << p) - 1
   for _ in range(p - 2	):
      __lowerCAmelCase								=	((s * s) - 2) % m
   return s == 0


if __name__ == "__main__":
     print(lucas_lehmer_test(7))
     print(lucas_lehmer_test(11))

