

'''simple docstring'''
import os




def 	UpperCamelCase   (       )		->	str:




  '''simple docstring'''



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

    lowercase									=0

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

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

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

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


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

'''simple docstring'''

from math import factorial, radians







def __UpperCamelCase( _A       :					float	,      _A       :					int = 18	,      _A       :					int = 10     ):
   '''simple docstring'''
   UpperCAmelCase__				:					int 					=	angle_in_degrees - ((angle_in_degrees // 3_6_0.0) * 3_6_0.0)

   # Converting from degrees to radians
   UpperCAmelCase__				:					Dict 					=	radians(_A     )

   UpperCAmelCase__				:					Union[str, Any] 					=	angle_in_radians
   UpperCAmelCase__				:					List[str] 					=	3
   UpperCAmelCase__				:					int 					=	-1

   for _ in range(_A     ):
      result += (b * (angle_in_radians**a)) / factorial(_A     )

      UpperCAmelCase__				:					List[str] 					=	-b  # One positive term and the next will be negative and so on...
      a += 2  # Increased by 2 for every term.

   return round(_A	,      _A     )


if __name__ == "__main__":
  __import__('doctest').testmod()




