
import os


def 				a__ (				):





  """simple docstring"""
  with open(os.path.dirname(__lowerCamelCase				) + '''/grid.txt'''				) as f:
    __SCREAMING_SNAKE_CASE	:     Optional[int] =						[]  # noqa: E741
    for _ in range(20				):
      l.append([int(__lowerCamelCase				) for x in f.readline().split()]				)

    __SCREAMING_SNAKE_CASE	:     Optional[int] =						0

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

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

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

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


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





"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_mobilevit import MobileViTImageProcessor


lowerCAmelCase_   						=   logging.get_logger(__name__)
class        __A       (	A_    ):







		'''simple docstring'''





		def __init__(	self						:  Dict			,*_snake_case						:  Any			,**_snake_case						:  str						)					->		None:






				"""simple docstring"""



				warnings.warn(
				    '''The class MobileViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use MobileViTImageProcessor instead.'''			,_snake_case			,)
				super().__init__(*_snake_case			,**_snake_case						)
