


import os


def 		lowercase_  (     ):


			'''simple docstring'''







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

						__lowercase 					=   0

						# right
						for i in range(20  ):
									for j in range(17  ):
												__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(17  ):
									for j in range(20  ):
												__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(17  ):
									for j in range(17  ):
												__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(17  ):
									for j in range(3       ,			20  ):
												__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())






# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    '''pipelines_utils''',
    '''0.22.0''',
    '''Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.''',
    standard_warn=False,
    stacklevel=3,
)


