





'''simple docstring'''

import os
import unittest

from transformers import LayoutLMTokenizer, LayoutLMTokenizerFast
from transformers.models.layoutlm.tokenization_layoutlm import VOCAB_FILES_NAMES
from transformers.testing_utils import require_tokenizers

from ...test_tokenization_common import TokenizerTesterMixin







@require_tokenizers
class __a			( _snake_case, unittest.TestCase      ):
   __UpperCamelCase :			List[str]						   =						LayoutLMTokenizer
   __UpperCamelCase :			Dict						   =						LayoutLMTokenizerFast
   __UpperCamelCase :			Optional[Any]						   =						True
   __UpperCamelCase :			Dict						   =						True





   def   UpperCAmelCase__  (       self					:      Any     ):

      '''simple docstring'''

      super().setUp()

      __SCREAMING_SNAKE_CASE   				=							[
          """[UNK]""",
          """[CLS]""",
          """[SEP]""",
          """want""",
          """##want""",
          """##ed""",
          """wa""",
          """un""",
          """runn""",
          """##ing""",
          """,""",
          """low""",
          """lowest""",
      ]
      __SCREAMING_SNAKE_CASE   				=							os.path.join(self.tmpdirname					,VOCAB_FILES_NAMES["""vocab_file"""]     )
      with open(self.vocab_file					,"""w"""					,encoding="""utf-8"""     ) as vocab_writer:
         vocab_writer.write("""""".join([x + """\n""" for x in vocab_tokens]     )     )





   def   UpperCAmelCase__  (       self					:      Any					,**lowerCamelCase					:      List[str]     ):

      '''simple docstring'''

      return LayoutLMTokenizer.from_pretrained(self.tmpdirname					,**lowerCamelCase     )





   def   UpperCAmelCase__  (       self					:      str					,lowerCamelCase					:      int     ):

      '''simple docstring'''

      __SCREAMING_SNAKE_CASE   				=							"""UNwant\u00E9d,running"""
      __SCREAMING_SNAKE_CASE   				=							"""unwanted, running"""
      return input_text, output_text





   def   UpperCAmelCase__  (       self					:      Optional[int]     ):

      '''simple docstring'''

      __SCREAMING_SNAKE_CASE   				=							self.tokenizer_class(self.vocab_file     )

      __SCREAMING_SNAKE_CASE   				=							tokenizer.tokenize("""UNwant\u00E9d,running"""     )
      self.assertListEqual(lowerCamelCase					,["""un""", """##want""", """##ed""", """,""", """runn""", """##ing"""]     )
      self.assertListEqual(tokenizer.convert_tokens_to_ids(lowerCamelCase     )					,[7, 4, 5, 10, 8, 9]     )





   def   UpperCAmelCase__  (       self					:      Optional[int]     ):

      '''simple docstring'''

      pass












import os



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

  UpperCamelCase      :   str			      =  0

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

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

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

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


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