






'''simple docstring'''







import os





def  SCREAMING_SNAKE_CASE_       ()      ->       Optional[Any]:
							with open(os.path.dirname(UpperCamelCase      ) + """/grid.txt"""      ) as f:
														lowerCamelCase__					:	Tuple         =       []  # noqa: E741
														for _ in range(20      ):
																					l.append([int(UpperCamelCase      ) for x in f.readline().split()]      )

														lowerCamelCase__					:	Dict         =       0

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

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

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

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


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





'''simple docstring'''




import logging
from dataclasses import dataclass, field
from pathlib import Path
from typing import Optional, Union

from .generation.configuration_utils import GenerationConfig
from .training_args import TrainingArguments
from .utils import add_start_docstrings


__snake_case    						=logging.getLogger(__name__)

@dataclass
@add_start_docstrings(TrainingArguments.__doc__		)
class 		UpperCAmelCase_      (  __lowercase		):
     lowerCamelCase				:	bool		=     field(default=__lowercase       ,	metadata={'''help''': '''Whether to use SortishSampler or not.'''}		)
     lowerCamelCase				:	bool		=     field(
         default=__lowercase       ,	metadata={'''help''': '''Whether to use generate to calculate generative metrics (ROUGE, BLEU).'''}		)
     lowerCamelCase				:	Optional[int]		=     field(
         default=__lowercase       ,	metadata={
             '''help''': (
                 '''The `max_length` to use on each evaluation loop when `predict_with_generate=True`. Will default '''
                 '''to the `max_length` value of the model configuration.'''
             )
         }       ,	)
     lowerCamelCase				:	Optional[int]		=     field(
         default=__lowercase       ,	metadata={
             '''help''': (
                 '''The `num_beams` to use on each evaluation loop when `predict_with_generate=True`. Will default '''
                 '''to the `num_beams` value of the model configuration.'''
             )
         }       ,	)
     lowerCamelCase				:	Optional[Union[str, Path, GenerationConfig]]		=     field(
         default=__lowercase       ,	metadata={
             '''help''': '''Model id, file path or url pointing to a GenerationConfig json file, to use during prediction.'''
         }       ,	)





     def 							__UpperCAmelCase      ( self       :      Dict    )				->  List[str]:
        lowerCAmelCase     =			super().to_dict()
        for k, v in d.items():
           if isinstance(UpperCAmelCase__    ,      UpperCAmelCase__    ):
              lowerCAmelCase     =			v.to_dict()
        return d





