






"""simple docstring"""





from ...configuration_utils import PretrainedConfig
from ...utils import logging


_SCREAMING_SNAKE_CASE					:				List[str]					    =						logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE					:				List[Any]					    =						{'''openai-gpt''': '''https://huggingface.co/openai-gpt/resolve/main/config.json'''}






class      a						(					__snake_case		):
    SCREAMING_SNAKE_CASE						:     Tuple						= """openai-gpt"""
    SCREAMING_SNAKE_CASE						:     Optional[int]						= {
        """max_position_embeddings""": """n_positions""",
        """hidden_size""": """n_embd""",
        """num_attention_heads""": """n_head""",
        """num_hidden_layers""": """n_layer""",
    }






    def __init__(       self     :							int       ,						__SCREAMING_SNAKE_CASE     :							Any=40478       ,						__SCREAMING_SNAKE_CASE     :							Optional[int]=512       ,						__SCREAMING_SNAKE_CASE     :							Optional[int]=768       ,						__SCREAMING_SNAKE_CASE     :							Union[str, Any]=12       ,						__SCREAMING_SNAKE_CASE     :							int=12       ,						__SCREAMING_SNAKE_CASE     :							Union[str, Any]="gelu"       ,						__SCREAMING_SNAKE_CASE     :							Tuple=0.1       ,						__SCREAMING_SNAKE_CASE     :							List[Any]=0.1       ,						__SCREAMING_SNAKE_CASE     :							Union[str, Any]=0.1       ,						__SCREAMING_SNAKE_CASE     :							List[Any]=1e-5       ,						__SCREAMING_SNAKE_CASE     :							Dict=0.02       ,						__SCREAMING_SNAKE_CASE     :							Optional[int]="cls_index"       ,						__SCREAMING_SNAKE_CASE     :							Any=True       ,						__SCREAMING_SNAKE_CASE     :							Dict=None       ,						__SCREAMING_SNAKE_CASE     :							Dict=True       ,						__SCREAMING_SNAKE_CASE     :							List[Any]=0.1       ,						**__SCREAMING_SNAKE_CASE     :							List[str]       ,						)     ->		List[str]:
      lowerCamelCase_         =						vocab_size
      lowerCamelCase_         =						n_positions
      lowerCamelCase_         =						n_embd
      lowerCamelCase_         =						n_layer
      lowerCamelCase_         =						n_head
      lowerCamelCase_         =						afn
      lowerCamelCase_         =						resid_pdrop
      lowerCamelCase_         =						embd_pdrop
      lowerCamelCase_         =						attn_pdrop
      lowerCamelCase_         =						layer_norm_epsilon
      lowerCamelCase_         =						initializer_range
      lowerCamelCase_         =						summary_type
      lowerCamelCase_         =						summary_use_proj
      lowerCamelCase_         =						summary_activation
      lowerCamelCase_         =						summary_first_dropout
      lowerCamelCase_         =						summary_proj_to_labels
      super().__init__(**__SCREAMING_SNAKE_CASE					)












"""simple docstring"""





import os







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

    lowerCamelCase_         =						0

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

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

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

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


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




