






"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCamelCase_					=      logging.get_logger(__name__)

lowerCamelCase_					=      {
    '''studio-ousia/luke-base''': '''https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json''',
    '''studio-ousia/luke-large''': '''https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json''',
}







class 			UpperCamelCase_       (__A     ):
	__magic_name__	      =				'''luke'''





	def __init__(      self					: Union[str, Any]	,	lowerCAmelCase_					: Optional[int]=50_267	,	lowerCAmelCase_					: Optional[Any]=500_000	,	lowerCAmelCase_					: Tuple=768	,	lowerCAmelCase_					: int=256	,	lowerCAmelCase_					: Tuple=12	,	lowerCAmelCase_					: Dict=12	,	lowerCAmelCase_					: Optional[Any]=3_072	,	lowerCAmelCase_					: Tuple="gelu"	,	lowerCAmelCase_					: List[str]=0.1	,	lowerCAmelCase_					: Dict=0.1	,	lowerCAmelCase_					: List[Any]=512	,	lowerCAmelCase_					: Optional[Any]=2	,	lowerCAmelCase_					: List[Any]=0.0_2	,	lowerCAmelCase_					: Tuple=1e-12	,	lowerCAmelCase_					: Dict=True	,	lowerCAmelCase_					: Optional[Any]=None	,	lowerCAmelCase_					: Optional[int]=1	,	lowerCAmelCase_					: str=0	,	lowerCAmelCase_					: Optional[Any]=2	,	**lowerCAmelCase_					: Tuple	,	)						->			Tuple:
				super().__init__(pad_token_id=lowerCAmelCase_	,	bos_token_id=lowerCAmelCase_	,	eos_token_id=lowerCAmelCase_	,	**lowerCAmelCase_						)

				UpperCAmelCase_     : Any			     =					vocab_size
				UpperCAmelCase_     : Union[str, Any]			     =					entity_vocab_size
				UpperCAmelCase_     : Optional[Any]			     =					hidden_size
				UpperCAmelCase_     : List[Any]			     =					entity_emb_size
				UpperCAmelCase_     : Optional[int]			     =					num_hidden_layers
				UpperCAmelCase_     : Any			     =					num_attention_heads
				UpperCAmelCase_     : int			     =					hidden_act
				UpperCAmelCase_     : Optional[Any]			     =					intermediate_size
				UpperCAmelCase_     : Dict			     =					hidden_dropout_prob
				UpperCAmelCase_     : List[Any]			     =					attention_probs_dropout_prob
				UpperCAmelCase_     : int			     =					max_position_embeddings
				UpperCAmelCase_     : Any			     =					type_vocab_size
				UpperCAmelCase_     : Union[str, Any]			     =					initializer_range
				UpperCAmelCase_     : List[Any]			     =					layer_norm_eps
				UpperCAmelCase_     : int			     =					use_entity_aware_attention
				UpperCAmelCase_     : str			     =					classifier_dropout











"""simple docstring"""
import os

def 				snake_case      (   ):
			with open(os.path.dirname(A__						) + "/grid.txt"						) as f:
						UpperCAmelCase_     : Any			     =					[]  # noqa: E741
						for _ in range(20						):
									l.append([int(A__						) for x in f.readline().split()]						)

						UpperCAmelCase_     : Any			     =					0

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

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

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

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


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



